METHOD_0 ( ) { javax . persistence . IDENT_0 em = METHOD_1 ( javax . persistence . IDENT_0 . class ) ; javax . persistence . Query q = METHOD_1 ( javax . persistence . Query . class ) ; com . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_2 . User user = METHOD_2 ( IDENT_4 ) ; expect ( em . METHOD_3 ( STRING_0 ) ) . andReturn ( q ) ; expect ( q . METHOD_4 ( STRING_1 , IDENT_4 ) ) . andReturn ( q ) ; expect ( q . METHOD_5 ( ) ) . andReturn ( user ) ; replay ( em , q ) ; com . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_2 . IDENT_5 bean = new com . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_2 . METHOD_6 ( ) ; org . IDENT_6 . IDENT_7 . IDENT_8 . bean ( bean ) . with ( em ) ; "<AssertPlaceHolder>" ; verify ( em , q ) ; } METHOD_7 ( java . lang . String ) { javax . persistence . Query query = em . METHOD_3 ( STRING_0 ) ; query . METHOD_4 ( STRING_1 , IDENT_4 ) ; return ( ( com . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_2 . User ) ( query . METHOD_5 ( ) ) ) ; }
org . junit . Assert . assertEquals ( user , bean . METHOD_7 ( IDENT_4 ) )