METHOD_0 ( ) { de . IDENT_0 . IDENT_1 . elements . Element expected = METHOD_1 ( de . IDENT_0 . IDENT_1 . elements . Element . class ) ; replay ( expected ) ; de . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_2 = METHOD_1 ( de . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; expect ( IDENT_2 . METHOD_2 ( STRING_0 ) ) . andReturn ( expected ) ; replay ( IDENT_2 ) ; de . IDENT_0 . IDENT_1 . tools . IDENT_4 resolver = new de . IDENT_0 . IDENT_1 . tools . METHOD_3 ( IDENT_2 , IDENT_5 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 ) ; verify ( expected ) ; } resolve ( java . lang . String ) { if ( IDENT_6 == null ) { return null ; } int indexOf = IDENT_6 . indexOf ( STRING_1 ) ; if ( indexOf == ( - 1 ) ) { return IDENT_7 . resolve ( IDENT_6 ) ; } else if ( indexOf == 0 ) { return IDENT_7 . resolve ( ( ( IDENT_8 ) + IDENT_6 ) ) ; } else { return IDENT_7 . resolve ( IDENT_6 ) ; } }
org . junit . Assert . assertEquals ( expected , resolver . resolve ( STRING_0 ) )