METHOD_0 ( ) { IDENT_0 . METHOD_1 ( ) . add ( user ) ; user . METHOD_2 ( ) . add ( IDENT_0 ) ; expect ( em . find ( IDENT_1 . domain . IDENT_2 . class , STRING_0 ) ) . andReturn ( IDENT_0 ) ; expect ( IDENT_3 . METHOD_3 ( ) ) . andReturn ( user ) ; replay ( ) ; try { IDENT_1 . domain . IDENT_2 IDENT_4 = IDENT_5 . METHOD_4 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } catch ( IDENT_1 . security . IDENT_6 IDENT_7 ) { org . junit . Assert . fail ( STRING_1 ) ; } } METHOD_4 ( java . lang . String ) { IDENT_1 . domain . IDENT_2 IDENT_0 = em . find ( IDENT_1 . domain . IDENT_2 . class , IDENT_8 ) ; if ( IDENT_0 == null ) { throw new org . springframework . IDENT_9 . METHOD_5 ( IDENT_1 . domain . IDENT_2 . class , IDENT_8 ) ; } IDENT_1 . domain . User user = IDENT_3 . METHOD_3 ( ) ; if ( ! ( user . METHOD_2 ( ) . contains ( IDENT_0 ) ) ) { if ( log . METHOD_6 ( ) ) { log . info ( ( ( ( ( STRING_2 + IDENT_8 ) + STRING_3 ) + ( user . METHOD_7 ( ) ) ) + STRING_4 ) ) ; } throw new IDENT_1 . security . METHOD_8 ( STRING_5 ) ; } return IDENT_0 ; }
org . junit . Assert . assertEquals ( IDENT_0 , IDENT_4 )