METHOD_0 ( ) { com . google . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( com . google . IDENT_0 . IDENT_1 . class ) ; org . apache . ambari . server . controller . IDENT_3 IDENT_4 = METHOD_2 ( org . apache . ambari . server . controller . IDENT_3 . class ) . METHOD_3 ( IDENT_2 ) . METHOD_4 ( ) ; org . apache . ambari . server . state . IDENT_5 IDENT_6 = METHOD_5 ( org . apache . ambari . server . state . IDENT_5 . class ) ; final org . apache . ambari . server . state . IDENT_7 host = METHOD_4 ( org . apache . ambari . server . state . IDENT_7 . class ) ; long IDENT_8 = 1L ; java . lang . String IDENT_9 = STRING_0 ; org . apache . ambari . server . state . IDENT_10 IDENT_11 = new org . apache . ambari . server . state . METHOD_6 ( STRING_1 , null , STRING_2 , STRING_3 , IDENT_9 , org . apache . ambari . server . state . IDENT_12 . IDENT_13 ) ; expect ( host . METHOD_7 ( IDENT_8 ) ) . andReturn ( IDENT_14 . IDENT_15 ) . METHOD_8 ( ) ; expect ( IDENT_6 . METHOD_9 ( IDENT_9 ) ) . andReturn ( host ) . METHOD_8 ( ) ; org . apache . ambari . server . controller . IDENT_16 . METHOD_10 ( IDENT_4 , IDENT_6 ) ; replay ( IDENT_4 , IDENT_6 , host ) ; org . apache . ambari . server . state . IDENT_14 state = IDENT_4 . METHOD_11 ( IDENT_8 , IDENT_11 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 , IDENT_6 , host ) ; } METHOD_11 ( long , org . apache . ambari . server . state . METHOD_6 ) { java . lang . String IDENT_17 = IDENT_11 . METHOD_12 ( ) ; java . lang . String IDENT_18 = IDENT_11 . METHOD_13 ( ) ; java . lang . String IDENT_9 = IDENT_11 . METHOD_14 ( ) ; if ( ( null == IDENT_17 ) && ( null == IDENT_9 ) ) { org . apache . ambari . server . controller . IDENT_3 . LOG . warn ( STRING_4 ) ; return org . apache . ambari . server . state . IDENT_14 . IDENT_19 ; } if ( org . apache . commons . lang . StringUtils . METHOD_15 ( IDENT_9 ) ) { org . apache . ambari . server . state . IDENT_7 host = IDENT_6 . METHOD_9 ( IDENT_9 ) ; if ( ( host . METHOD_7 ( IDENT_8 ) ) != ( org . apache . ambari . server . state . IDENT_14 . IDENT_19 ) ) { return org . apache . ambari . server . state . IDENT_14 . IDENT_15 ; } } if ( org . apache . commons . lang . StringUtils . equals ( IDENT_20 . IDENT_21 . name ( ) , IDENT_17 ) ) { return org . apache . ambari . server . state . IDENT_14 . IDENT_19 ; } org . apache . ambari . server . state . IDENT_22 cluster = IDENT_6 . METHOD_16 ( IDENT_8 ) ; org . apache . ambari . server . state . IDENT_23 service = cluster . METHOD_12 ( IDENT_17 ) ; if ( ( service . METHOD_7 ( ) ) != ( org . apache . ambari . server . state . IDENT_14 . IDENT_19 ) ) { return org . apache . ambari . server . state . IDENT_14 . IDENT_15 ; } if ( org . apache . commons . lang . StringUtils . METHOD_15 ( IDENT_18 ) ) { org . apache . ambari . server . state . IDENT_24 IDENT_25 = service . METHOD_17 ( IDENT_18 ) ; org . apache . ambari . server . state . IDENT_26 IDENT_27 = IDENT_25 . METHOD_18 ( IDENT_9 ) ; if ( ( IDENT_27 . METHOD_7 ( ) ) != ( org . apache . ambari . server . state . IDENT_14 . IDENT_19 ) ) { return org . apache . ambari . server . state . IDENT_14 . IDENT_15 ; } } return org . apache . ambari . server . state . IDENT_14 . IDENT_19 ; }
org . junit . Assert . assertEquals ( IDENT_14 . IDENT_15 , state )