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 ( org . apache . ambari . server . IDENT_0 . entities . METHOD_1 . class , INT_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 ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . Long ) { return IDENT_4 . get ( ) . find ( org . apache . ambari . server . IDENT_0 . entities . IDENT_5 . class , id ) ; }
org . junit . Assert . assertEquals ( entity , dao . METHOD_3 ( INT_0 ) )