METHOD_0 ( ) { java . util . Properties values = new java . util . Properties ( ) { { setProperty ( "foo" , STRING_0 ) ; setProperty ( STRING_1 , STRING_2 ) ; } } ; java . lang . String template = STRING_3 ; java . lang . String expected = STRING_4 ; java . lang . String result = new org . IDENT_0 . IDENT_1 . METHOD_1 ( values ) . replace ( template ) ; "<AssertPlaceHolder>" ; } replace ( java . lang . String ) { if ( source == null ) return null ; java . util . regex . IDENT_2 m = org . IDENT_0 . IDENT_1 . METHOD_1 . IDENT_3 . matcher ( source ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; while ( m . find ( ) ) { java . lang . String IDENT_4 = m . group ( 1 ) ; java . lang . String value = values . getProperty ( IDENT_4 ) ; java . lang . String IDENT_5 = ( value != null ) ? replace ( value ) : "" ; m . METHOD_2 ( sb , java . util . regex . IDENT_2 . METHOD_3 ( IDENT_5 ) ) ; } m . METHOD_4 ( sb ) ; return sb . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , result )