METHOD_0 ( ) { org . apache . ambari . server . IDENT_0 . entities . IDENT_1 entity = new org . apache . ambari . server . IDENT_0 . entities . METHOD_1 ( ) ; expect ( IDENT_2 . find ( eq ( org . apache . ambari . server . IDENT_0 . entities . METHOD_1 . class ) , eq ( STRING_0 ) ) ) . andReturn ( entity ) ; replay ( IDENT_2 ) ; org . apache . ambari . server . IDENT_0 . dao . IDENT_3 dao = new org . apache . ambari . server . IDENT_0 . dao . METHOD_2 ( ) ; dao . IDENT_4 = IDENT_4 ; org . apache . ambari . server . IDENT_0 . entities . METHOD_1 result = dao . METHOD_3 ( STRING_0 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 , IDENT_2 ) ; } METHOD_3 ( java . lang . String ) { javax . persistence . IDENT_5 < org . apache . ambari . server . IDENT_0 . entities . IDENT_6 > query = IDENT_4 . get ( ) . METHOD_4 ( STRING_1 , org . apache . ambari . server . IDENT_0 . entities . IDENT_6 . class ) ; query . METHOD_5 ( STRING_2 , IDENT_7 ) ; return query . METHOD_6 ( ) ; }
org . junit . Assert . assertSame ( result , entity )