METHOD_0 ( ) { org . IDENT_0 . catalog . IDENT_1 IDENT_2 = METHOD_1 ( org . IDENT_0 . catalog . IDENT_1 . class ) ; expect ( IDENT_2 . METHOD_2 ( ) ) . andReturn ( STRING_0 ) ; org . IDENT_0 . catalog . IDENT_3 IDENT_4 = METHOD_1 ( org . IDENT_0 . catalog . IDENT_3 . class ) ; expect ( IDENT_4 . METHOD_3 ( "foo" ) ) . andReturn ( IDENT_2 ) ; replay ( IDENT_2 , IDENT_4 ) ; org . IDENT_0 . IDENT_5 . IDENT_6 IDENT_7 = new org . IDENT_0 . IDENT_5 . METHOD_4 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 , IDENT_4 ) ; } METHOD_2 ( java . lang . String ) { org . IDENT_0 . catalog . IDENT_1 IDENT_2 = ( "" . equals ( IDENT_8 ) ) ? catalog . METHOD_5 ( ) : catalog . METHOD_3 ( IDENT_8 ) ; return IDENT_2 != null ? IDENT_2 . METHOD_2 ( ) : null ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_7 . METHOD_2 ( "foo" ) )