METHOD_0 ( ) { edu . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . utils . IDENT_4 IDENT_5 = new edu . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . utils . METHOD_1 ( ) ; IDENT_5 . METHOD_2 ( STRING_0 ) . METHOD_3 ( STRING_1 ) ; edu . IDENT_0 . IDENT_1 . subject . IDENT_6 subject = mock ( edu . IDENT_0 . IDENT_1 . subject . IDENT_6 . class ) ; when ( subject . getId ( ) ) . thenReturn ( STRING_2 ) ; java . lang . String expected = STRING_3 ; java . lang . String result = IDENT_5 . METHOD_4 ( subject ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( edu . IDENT_0 . IDENT_1 . subject . IDENT_6 ) { final org . apache . commons . IDENT_7 . IDENT_8 context = new org . apache . commons . IDENT_7 . METHOD_5 ( ) ; context . set ( STRING_4 , subject ) ; context . set ( STRING_5 , subject . getId ( ) ) ; java . lang . String address = subject . getId ( ) ; try { address = IDENT_9 . evaluate ( context ) . toString ( ) ; } catch ( java . lang . Exception ex ) { } if ( ! ( address . contains ( STRING_6 ) ) ) { address = java . lang . String . format ( STRING_7 , address , this . domain ) ; } return address . replace ( STRING_8 , STRING_9 ) ; }
org . junit . Assert . assertEquals ( expected , result )