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