METHOD_0 ( ) { java . lang . String id = STRING_0 ; final org . talend . IDENT_0 . api . dataset . IDENT_1 metadata = METHOD_1 ( id ) ; repository . save ( metadata ) ; org . talend . IDENT_0 . api . dataset . IDENT_1 update = mapper . METHOD_2 ( org . talend . IDENT_0 . api . dataset . IDENT_1 . class ) . METHOD_3 ( this . getClass ( ) . getResourceAsStream ( STRING_1 ) ) ; update = IDENT_2 . metadata ( ) . METHOD_4 ( update ) . id ( id ) . build ( ) ; repository . save ( update ) ; final org . talend . IDENT_0 . api . dataset . IDENT_1 actual = repository . get ( id ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { final org . talend . IDENT_0 . dataset . store . metadata . file . File file = METHOD_5 ( id ) ; if ( file . getName ( ) . startsWith ( STRING_2 ) ) { org . talend . IDENT_0 . dataset . store . metadata . file . IDENT_3 . LOG . info ( STRING_3 , file . getName ( ) ) ; return null ; } if ( ! ( file . exists ( ) ) ) { org . talend . IDENT_0 . dataset . store . metadata . file . IDENT_3 . LOG . info ( STRING_4 , id ) ; return null ; } java . util . concurrent . IDENT_4 . IDENT_5 IDENT_6 = IDENT_4 . METHOD_6 ( id ) ; IDENT_6 . METHOD_7 ( ) . METHOD_8 ( ) ; try ( org . talend . IDENT_0 . dataset . store . metadata . file . IDENT_7 IDENT_8 = new org . talend . IDENT_0 . dataset . store . metadata . file . METHOD_9 ( file ) ; java . util . IDENT_9 . IDENT_10 input = new java . util . IDENT_9 . METHOD_10 ( IDENT_8 ) ) { return mapper . METHOD_2 ( org . talend . IDENT_0 . api . dataset . IDENT_1 . class ) . METHOD_3 ( input ) ; } catch ( org . talend . IDENT_0 . dataset . store . metadata . file . IOException e ) { org . talend . IDENT_0 . dataset . store . metadata . file . IDENT_3 . LOG . error ( STRING_5 , id , e ) ; return null ; } finally { METHOD_8 . METHOD_7 ( ) . METHOD_11 ( ) ; } }
org . junit . Assert . assertEquals ( update , actual )