METHOD_0 ( ) { java . lang . String input = STRING_0 ; java . lang . String expected = STRING_1 ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { boolean IDENT_0 = ( text . indexOf ( com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_4 ) ) >= 0 ; boolean IDENT_5 = ( text . indexOf ( com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_6 ) ) >= 0 ; if ( ! ( IDENT_0 || IDENT_5 ) ) { return text ; } java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; if ( IDENT_0 ) { for ( int i = 0 ; i < ( text . length ( ) ) ; i ++ ) { char c = text . charAt ( i ) ; if ( c == ( com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_4 ) ) { builder . append ( com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_7 ) ; } else { builder . append ( c ) ; } } } else { builder . append ( text ) ; } if ( IDENT_5 ) { builder . insert ( 0 , com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_4 ) ; builder . append ( com . IDENT_1 . IDENT_2 . util . IDENT_3 . IDENT_4 ) ; } return builder . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , parser . METHOD_1 ( input ) )