METHOD_0 ( ) { IDENT_0 . METHOD_1 ( ) ; org . apache . ambari . server . IDENT_1 . dao . IDENT_2 IDENT_3 = IDENT_4 . getInstance ( org . apache . ambari . server . IDENT_1 . dao . IDENT_2 . class ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_5 IDENT_6 = IDENT_3 . METHOD_2 ( 1L ) ; java . util . List < org . apache . ambari . server . IDENT_1 . entities . IDENT_7 > IDENT_8 = new java . util . ArrayList ( ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_7 IDENT_9 = new org . apache . ambari . server . IDENT_1 . entities . METHOD_3 ( ) ; IDENT_9 . METHOD_4 ( IDENT_10 . METHOD_5 ( STRING_0 ) . METHOD_6 ( ) ) ; IDENT_9 . METHOD_7 ( IDENT_6 ) ; IDENT_9 . METHOD_8 ( INT_0 ) ; IDENT_11 . create ( IDENT_9 ) ; org . apache . ambari . server . IDENT_1 . entities . METHOD_3 IDENT_12 = new org . apache . ambari . server . IDENT_1 . entities . METHOD_3 ( ) ; IDENT_12 . METHOD_4 ( IDENT_10 . METHOD_5 ( STRING_0 ) . METHOD_6 ( ) ) ; IDENT_12 . METHOD_7 ( IDENT_6 ) ; IDENT_12 . METHOD_9 ( 1L ) ; IDENT_12 . METHOD_8 ( INT_1 ) ; IDENT_11 . create ( IDENT_12 ) ; IDENT_8 . add ( IDENT_9 ) ; IDENT_8 . add ( IDENT_12 ) ; IDENT_6 . METHOD_10 ( IDENT_8 ) ; IDENT_3 . METHOD_11 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( ) { javax . persistence . IDENT_13 < java . lang . Long > query = IDENT_14 . get ( ) . METHOD_13 ( STRING_1 , org . apache . ambari . server . IDENT_1 . dao . Long . class ) ; java . lang . Long result = IDENT_15 . METHOD_14 ( query ) ; if ( result != null ) { return result ; } else { return 0 ; } }
org . junit . Assert . assertEquals ( 1L , IDENT_11 . METHOD_12 ( ) )