METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; org . apache . ambari . server . IDENT_2 . IDENT_3 IDENT_4 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_3 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_3 IDENT_5 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_3 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_3 IDENT_6 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_3 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_3 IDENT_7 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_3 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_8 IDENT_9 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_8 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_8 IDENT_10 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_8 . class ) ; org . apache . ambari . server . IDENT_2 . IDENT_8 IDENT_11 = METHOD_1 ( org . apache . ambari . server . IDENT_2 . IDENT_8 . class ) ; java . util . List < org . apache . ambari . server . IDENT_2 . IDENT_3 > IDENT_12 = new java . util . ArrayList ( ) ; IDENT_12 . add ( IDENT_4 ) ; IDENT_12 . add ( IDENT_5 ) ; IDENT_12 . add ( IDENT_6 ) ; IDENT_12 . add ( IDENT_7 ) ; expect ( IDENT_4 . METHOD_2 ( ) ) . andReturn ( java . util . Collections . METHOD_3 ( IDENT_0 , java . util . Collections . METHOD_3 ( IDENT_1 , IDENT_9 ) ) ) . METHOD_4 ( ) ; expect ( IDENT_5 . METHOD_2 ( ) ) . andReturn ( java . util . Collections . METHOD_3 ( IDENT_0 , java . util . Collections . METHOD_3 ( IDENT_1 , IDENT_10 ) ) ) . METHOD_4 ( ) ; expect ( IDENT_6 . METHOD_2 ( ) ) . andReturn ( java . util . Collections . METHOD_3 ( IDENT_0 , java . util . Collections . METHOD_3 ( IDENT_1 , IDENT_11 ) ) ) . METHOD_4 ( ) ; expect ( IDENT_7 . METHOD_2 ( ) ) . andReturn ( java . util . Collections . METHOD_5 ( ) ) . METHOD_4 ( ) ; expect ( IDENT_11 . METHOD_6 ( ) ) . andReturn ( IDENT_13 . IDENT_14 ) . METHOD_4 ( ) ; expect ( IDENT_10 . METHOD_6 ( ) ) . andReturn ( IDENT_13 . IDENT_15 ) . METHOD_4 ( ) ; replay ( IDENT_4 , IDENT_5 , IDENT_6 , IDENT_7 , IDENT_9 , IDENT_10 , IDENT_11 ) ; org . apache . ambari . server . controller . internal . IDENT_16 IDENT_17 = new org . apache . ambari . server . controller . internal . METHOD_7 ( 1L , IDENT_12 , null , null ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 , IDENT_5 , IDENT_6 , IDENT_7 , IDENT_9 , IDENT_10 , IDENT_11 ) ; } METHOD_8 ( java . lang . String , java . lang . String ) { org . apache . ambari . server . IDENT_13 IDENT_18 = null ; java . util . IDENT_19 < org . apache . ambari . server . IDENT_2 . IDENT_3 > iterator = IDENT_12 . METHOD_9 ( IDENT_12 . size ( ) ) ; while ( ( IDENT_18 == null ) && ( iterator . METHOD_10 ( ) ) ) { org . apache . ambari . server . IDENT_2 . IDENT_3 IDENT_20 = iterator . METHOD_11 ( ) ; java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . ambari . server . IDENT_2 . IDENT_8 > > IDENT_21 = IDENT_20 . METHOD_2 ( ) ; if ( IDENT_21 != null ) { java . util . Map < java . lang . String , org . apache . ambari . server . IDENT_2 . IDENT_8 > IDENT_22 = IDENT_21 . get ( host ) ; if ( IDENT_22 != null ) { org . apache . ambari . server . IDENT_2 . IDENT_8 IDENT_23 = IDENT_22 . get ( component ) ; if ( ( IDENT_23 != null ) && ( ( IDENT_23 . METHOD_6 ( ) ) != ( org . apache . ambari . server . IDENT_13 . IDENT_14 ) ) ) { IDENT_18 = IDENT_23 . METHOD_6 ( ) ; } } } } org . apache . ambari . server . state . IDENT_24 IDENT_25 = null ; if ( IDENT_18 != null ) { switch ( IDENT_18 ) { case IDENT_15 : case IDENT_26 : IDENT_25 = org . apache . ambari . server . state . IDENT_24 . IDENT_27 ; break ; case IDENT_28 : IDENT_25 = org . apache . ambari . server . state . IDENT_24 . IDENT_29 ; break ; case IDENT_30 : IDENT_25 = org . apache . ambari . server . state . IDENT_24 . IDENT_31 ; break ; default : IDENT_25 = org . apache . ambari . server . state . IDENT_24 . IDENT_32 ; } } return IDENT_25 ; }
org . junit . Assert . assertEquals ( IDENT_24 . IDENT_27 , IDENT_17 . METHOD_8 ( IDENT_0 , IDENT_1 ) )