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