METHOD_0 ( ) { java . lang . String result = IDENT_0 . METHOD_1 ( null , STRING_0 , null ) ; java . lang . String expResult = STRING_1 ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String , java . lang . Object [ ] ) { if ( ( rule == null ) || ( rule . equals ( "" ) ) ) { throw new org . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 ( STRING_2 ) ; } java . util . IDENT_4 IDENT_5 = null ; if ( text . containsKey ( group ) ) { IDENT_5 = text . get ( group ) ; } if ( IDENT_5 == null ) { java . lang . String IDENT_6 = STRING_3 ; if ( ! ( ( group == null ) || ( group . equals ( "" ) ) ) ) { IDENT_6 = ( group . trim ( ) . replace ( STRING_4 , STRING_5 ) ) + STRING_6 ; } try { IDENT_5 = java . util . IDENT_4 . METHOD_3 ( IDENT_6 , IDENT_7 ) ; text . put ( group , IDENT_5 ) ; } catch ( java . lang . Exception e ) { throw new org . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 ( e . getMessage ( ) ) ; } } if ( ! ( IDENT_5 . containsKey ( rule ) ) ) { return null ; } else { if ( IDENT_8 == null ) { return IDENT_5 . getString ( rule ) ; } else { java . text . IDENT_9 IDENT_10 = new java . text . METHOD_4 ( IDENT_5 . getString ( rule ) , IDENT_7 ) ; return IDENT_10 . format ( IDENT_8 , new java . lang . StringBuffer ( ) , null ) . toString ( ) ; } } }
org . junit . Assert . assertEquals ( expResult , result )