METHOD_0 ( ) { java . lang . String input = STRING_0 ; java . lang . String expected = STRING_1 ; java . lang . String IDENT_0 = STRING_2 ; java . lang . String value = com . ibm . ws . security . common . web . IDENT_1 . METHOD_1 ( input , IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String ) { if ( ( IDENT_2 == null ) || ( ( IDENT_2 . length ( ) ) == 0 ) ) { return IDENT_3 ; } java . lang . String IDENT_4 = IDENT_3 ; java . lang . String IDENT_5 = IDENT_2 + STRING_3 ; int IDENT_6 = IDENT_5 . length ( ) ; if ( ( IDENT_3 != null ) && ( ( IDENT_3 . length ( ) ) > IDENT_6 ) ) { if ( ( IDENT_3 . indexOf ( IDENT_5 ) ) > ( - 1 ) ) { java . lang . StringBuffer sb = null ; int i = 0 ; if ( ( i = IDENT_3 . indexOf ( STRING_4 ) ) > ( - 1 ) ) { sb = new java . lang . StringBuffer ( IDENT_3 . substring ( 0 , ( i + 1 ) ) ) ; if ( ( IDENT_3 . length ( ) ) > ( i + 1 ) ) { IDENT_3 = IDENT_3 . substring ( ( i + 1 ) ) ; } } else { sb = new java . lang . StringBuffer ( ) ; } java . lang . String [ ] IDENT_7 = IDENT_3 . split ( STRING_5 ) ; int IDENT_8 = IDENT_7 . length ; java . lang . String IDENT_9 = IDENT_5 + STRING_6 ; java . lang . String IDENT_10 = IDENT_5 + STRING_7 ; for ( java . lang . String entry : IDENT_7 ) { OP_0 IDENT_8 ; if ( ( entry . startsWith ( IDENT_5 ) ) && ( ( entry . length ( ) ) > IDENT_6 ) ) { entry = entry . replaceAll ( IDENT_9 , IDENT_10 ) ; sb . append ( entry ) ; } else { sb . append ( entry ) ; } if ( IDENT_8 > 0 ) { sb . append ( STRING_5 ) ; } } IDENT_4 = sb . toString ( ) ; } } return IDENT_4 ; }
org . junit . Assert . assertEquals ( expected , value )