METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; when ( IDENT_1 . find ( any ( java . lang . Class . class ) , any ( java . lang . String . class ) ) ) . thenReturn ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . repository . IDENT_5 . IDENT_6 ) ; when ( IDENT_1 . save ( any ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . type . IDENT_7 . class ) ) ) . thenReturn ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . repository . IDENT_5 . IDENT_6 ) ; when ( IDENT_1 . find ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . type . IDENT_8 . class , "1" ) ) . thenReturn ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . repository . IDENT_5 . IDENT_9 . get ( "1" ) ) ; org . IDENT_2 . IDENT_3 . IDENT_4 . api . repository . type . IDENT_10 IDENT_11 = METHOD_2 ( ) . METHOD_3 ( "1" ) ; verify ( IDENT_1 ) . find ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . type . IDENT_8 . class , "1" ) ; "<AssertPlaceHolder>" ; } to ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . type . IDENT_8 ) { if ( null == IDENT_12 ) { return null ; } else { return IDENT_10 . Builder . create ( IDENT_12 ) . build ( ) ; } }
org . junit . Assert . assertEquals ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . type . IDENT_8 . to ( org . IDENT_2 . IDENT_3 . IDENT_4 . impl . repository . IDENT_5 . IDENT_9 . get ( "1" ) ) , IDENT_11 )