METHOD_0 ( ) { org . apache . ambari . server . controller . IDENT_0 controller = METHOD_1 ( org . apache . ambari . server . controller . IDENT_0 . class ) ; org . apache . ambari . server . api . services . IDENT_1 IDENT_2 = METHOD_1 ( org . apache . ambari . server . api . services . IDENT_1 . class ) ; org . apache . ambari . server . controller . IDENT_3 IDENT_4 = METHOD_1 ( org . apache . ambari . server . controller . IDENT_3 . class ) ; org . apache . ambari . server . controller . IDENT_5 IDENT_6 = METHOD_1 ( org . apache . ambari . server . controller . IDENT_5 . class ) ; org . apache . ambari . server . controller . IDENT_7 IDENT_8 = METHOD_1 ( org . apache . ambari . server . controller . IDENT_7 . class ) ; java . lang . String IDENT_9 = STRING_0 ; java . lang . String IDENT_10 = STRING_1 ; java . lang . String IDENT_11 = STRING_2 ; java . lang . String IDENT_12 = STRING_3 ; expect ( controller . METHOD_2 ( ) ) . andReturn ( IDENT_2 ) . METHOD_3 ( ) ; expect ( controller . METHOD_4 ( org . easymock . EasyMock . METHOD_5 ( ) ) ) . andReturn ( java . util . Collections . METHOD_6 ( IDENT_4 ) ) . METHOD_3 ( ) ; expect ( IDENT_4 . METHOD_7 ( ) ) . andReturn ( IDENT_9 ) . METHOD_3 ( ) ; expect ( IDENT_4 . METHOD_8 ( ) ) . andReturn ( java . util . Collections . METHOD_6 ( IDENT_12 ) ) ; expect ( IDENT_6 . METHOD_9 ( ) ) . andReturn ( STRING_4 ) . METHOD_3 ( ) ; expect ( IDENT_6 . METHOD_10 ( ) ) . andReturn ( IDENT_11 ) . METHOD_3 ( ) ; expect ( controller . METHOD_11 ( org . easymock . EasyMock . METHOD_5 ( ) ) ) . andReturn ( java . util . Collections . METHOD_6 ( IDENT_6 ) ) . METHOD_3 ( ) ; expect ( IDENT_8 . METHOD_12 ( ) ) . andReturn ( STRING_5 ) . METHOD_3 ( ) ; expect ( IDENT_8 . METHOD_13 ( ) ) . andReturn ( null ) . METHOD_3 ( ) ; expect ( IDENT_8 . getType ( ) ) . andReturn ( IDENT_11 ) . METHOD_3 ( ) ; expect ( IDENT_8 . METHOD_14 ( ) ) . andReturn ( java . util . Collections . METHOD_6 ( IDENT_13 . IDENT_14 . IDENT_15 ) ) . METHOD_3 ( ) ; expect ( IDENT_8 . METHOD_15 ( ) ) . andReturn ( java . util . Collections . METHOD_16 ( ) ) . METHOD_3 ( ) ; expect ( IDENT_8 . METHOD_17 ( ) ) . andReturn ( true ) . METHOD_3 ( ) ; expect ( controller . METHOD_18 ( org . easymock . EasyMock . METHOD_5 ( ) ) ) . andReturn ( java . util . Collections . METHOD_6 ( IDENT_8 ) ) . METHOD_3 ( ) ; expect ( IDENT_4 . METHOD_19 ( ) ) . andReturn ( java . util . Collections . METHOD_20 ( IDENT_10 , java . util . Collections . METHOD_16 ( ) ) ) ; expect ( controller . METHOD_21 ( org . easymock . EasyMock . METHOD_5 ( ) ) ) . andReturn ( java . util . Collections . METHOD_22 ( ) ) . METHOD_3 ( ) ; expect ( IDENT_2 . METHOD_23 ( "test" , STRING_6 , STRING_0 , STRING_4 ) ) . andReturn ( java . util . Collections . emptyList ( ) ) . METHOD_3 ( ) ; replay ( controller , IDENT_4 , IDENT_6 , IDENT_8 , IDENT_2 ) ; org . apache . ambari . server . controller . internal . IDENT_16 IDENT_17 = new org . apache . ambari . server . controller . internal . METHOD_24 ( "test" , STRING_6 , controller ) ; try { IDENT_17 . METHOD_25 ( IDENT_12 ) ; org . junit . Assert . fail ( STRING_7 ) ; } catch ( java . lang . IllegalArgumentException e ) { } "<AssertPlaceHolder>" ; METHOD_26 ( ) ; } METHOD_25 ( java . lang . String ) { for ( Map . Entry < java . lang . String , java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . ambari . server . controller . internal . METHOD_24 . IDENT_18 > > > entry : IDENT_19 . entrySet ( ) ) { java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . ambari . server . controller . internal . METHOD_24 . IDENT_18 > > IDENT_20 = entry . getValue ( ) ; java . lang . String IDENT_21 = entry . getKey ( ) ; if ( ( IDENT_20 . containsKey ( config ) ) && ( ! ( METHOD_27 ( IDENT_21 ) . contains ( config ) ) ) ) { return IDENT_21 ; } } throw new java . lang . IllegalArgumentException ( ( STRING_8 + config ) ) ; }
org . junit . Assert . assertEquals ( IDENT_9 , IDENT_17 . METHOD_25 ( IDENT_10 ) )