METHOD_0 ( ) { java . lang . String input = STRING_0 ; java . lang . String result = IDENT_0 . METHOD_1 ( input ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { java . util . regex . IDENT_1 matcher = org . IDENT_2 . server . action . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 . matcher ( input ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; while ( matcher . find ( ) ) { matcher . METHOD_2 ( sb , "" ) ; java . lang . String text = matcher . group ( 1 ) ; java . lang . String url = matcher . group ( 2 ) ; if ( ( url . charAt ( 0 ) ) == STRING_1 ) { url = ( IDENT_8 ) + url ; } sb . append ( text ) . append ( STRING_2 ) . append ( url ) . append ( STRING_3 ) ; } if ( ( sb . length ( ) ) > 0 ) { matcher . METHOD_3 ( sb ) ; return sb . toString ( ) ; } else { return input ; } }
org . junit . Assert . assertEquals ( input , result )