METHOD_0 ( ) { java . util . Map < java . lang . String , org . apache . ambari . server . state . IDENT_0 > IDENT_1 = new java . util . HashMap < java . lang . String , org . apache . ambari . server . state . IDENT_0 > ( ) { { put ( STRING_0 2 , null ) ; } } ; java . util . Map < java . lang . String , java . lang . String > IDENT_2 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( STRING_1 , STRING_2 ) ; put ( STRING_3 , STRING_0 3 ) ; } } ; java . util . Map < java . lang . String , java . lang . String > IDENT_3 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( STRING_0 5 , STRING_4 ) ; } } ; org . easymock . IDENT_4 IDENT_5 = new org . easymock . METHOD_1 ( ) ; org . apache . ambari . server . state . IDENT_6 IDENT_7 = IDENT_5 . METHOD_2 ( org . apache . ambari . server . state . IDENT_6 . class ) ; final org . apache . ambari . server . state . IDENT_8 cluster = IDENT_5 . METHOD_2 ( org . apache . ambari . server . state . IDENT_8 . class ) ; com . google . IDENT_9 . IDENT_10 IDENT_11 = IDENT_5 . METHOD_2 ( com . google . IDENT_9 . IDENT_10 . class ) ; org . apache . ambari . server . controller . IDENT_12 controller = METHOD_3 ( org . apache . ambari . server . controller . IDENT_12 . class ) . METHOD_4 ( STRING_0 ) . METHOD_4 ( STRING_5 , new java . lang . Class [ ] { } ) . METHOD_4 ( STRING_6 ) . METHOD_2 ( ) ; expect ( IDENT_11 . getInstance ( org . apache . ambari . server . controller . IDENT_13 . class ) ) . andReturn ( controller ) . METHOD_5 ( ) ; expect ( controller . METHOD_6 ( ) ) . andReturn ( IDENT_7 ) . METHOD_5 ( ) ; expect ( IDENT_7 . METHOD_6 ( ) ) . andReturn ( new java . util . HashMap < java . lang . String , org . apache . ambari . server . state . IDENT_8 > ( ) { { put ( STRING_0 4 , cluster ) ; } } ) . METHOD_7 ( ) ; expect ( cluster . METHOD_8 ( ) ) . andReturn ( STRING_7 ) . METHOD_7 ( ) ; expect ( cluster . METHOD_9 ( ) ) . andReturn ( IDENT_1 ) . METHOD_10 ( ) ; org . apache . ambari . server . state . IDENT_14 IDENT_15 = IDENT_5 . METHOD_2 ( org . apache . ambari . server . state . IDENT_14 . class ) ; expect ( cluster . METHOD_11 ( STRING_8 ) ) . andReturn ( IDENT_15 ) . METHOD_10 ( ) ; org . apache . ambari . server . state . IDENT_14 IDENT_16 = IDENT_5 . METHOD_2 ( org . apache . ambari . server . state . IDENT_14 . class ) ; expect ( cluster . METHOD_11 ( STRING_9 ) ) . andReturn ( IDENT_16 ) . METHOD_10 ( ) ; org . apache . ambari . server . state . IDENT_14 IDENT_17 = IDENT_5 . METHOD_2 ( org . apache . ambari . server . state . IDENT_14 . class ) ; expect ( cluster . METHOD_11 ( STRING_0 1 ) ) . andReturn ( IDENT_17 ) . METHOD_10 ( ) ; expect ( IDENT_15 . METHOD_12 ( ) ) . andReturn ( IDENT_2 ) . METHOD_5 ( ) ; expect ( IDENT_16 . METHOD_12 ( ) ) . andReturn ( java . util . Collections . METHOD_13 ( ) ) . METHOD_5 ( ) ; expect ( IDENT_17 . METHOD_12 ( ) ) . andReturn ( IDENT_3 ) . METHOD_5 ( ) ; org . easymock . IDENT_18 < java . util . Map > IDENT_19 = org . easymock . EasyMock . METHOD_14 ( ) ; expect ( controller . METHOD_15 ( METHOD_16 ( org . apache . ambari . server . state . IDENT_8 . class ) , METHOD_16 ( org . apache . ambari . server . state . IDENT_20 . class ) , anyString ( ) , METHOD_17 ( IDENT_19 ) , anyString ( ) , METHOD_16 ( java . util . Map . class ) ) ) . andReturn ( METHOD_2 ( org . apache . ambari . server . state . IDENT_14 . class ) ) . METHOD_7 ( ) ; replay ( controller , IDENT_11 , IDENT_7 , IDENT_15 , IDENT_16 , IDENT_17 , cluster ) ; new org . apache . ambari . server . IDENT_21 . METHOD_18 ( IDENT_11 ) . METHOD_19 ( ) ; IDENT_5 . METHOD_20 ( ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_22 = IDENT_19 . getValue ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Long ) { org . apache . ambari . server . view . IDENT_23 IDENT_24 = IDENT_25 . get ( IDENT_26 ) ; if ( IDENT_24 == null ) { org . apache . ambari . server . view . IDENT_23 cluster = METHOD_21 ( IDENT_26 ) ; org . apache . ambari . server . view . IDENT_23 IDENT_27 = IDENT_25 . METHOD_22 ( IDENT_26 , cluster ) ; if ( IDENT_27 == null ) IDENT_24 = cluster ; else IDENT_24 = IDENT_27 ; } return IDENT_24 ; }
org . junit . Assert . assertEquals ( IDENT_22 . get ( STRING_0 0 ) , STRING_4 )