METHOD_0 ( ) { com . google . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( com . google . IDENT_0 . IDENT_1 . class ) ; org . easymock . IDENT_3 < org . apache . ambari . server . controller . IDENT_4 > IDENT_5 = org . easymock . EasyMock . METHOD_2 ( ) ; org . apache . ambari . server . state . IDENT_6 IDENT_7 = METHOD_3 ( org . apache . ambari . server . state . IDENT_6 . class ) ; org . apache . ambari . server . state . IDENT_8 cluster = METHOD_3 ( org . apache . ambari . server . state . IDENT_8 . class ) ; org . apache . ambari . server . state . IDENT_9 host = METHOD_3 ( org . apache . ambari . server . state . IDENT_9 . class ) ; org . apache . ambari . server . state . IDENT_10 service = METHOD_3 ( org . apache . ambari . server . state . IDENT_10 . class ) ; org . apache . ambari . server . state . IDENT_11 component = METHOD_3 ( org . apache . ambari . server . state . IDENT_11 . class ) ; org . apache . ambari . server . controller . IDENT_12 IDENT_13 = METHOD_3 ( org . apache . ambari . server . controller . IDENT_12 . class ) ; org . apache . ambari . server . controller . IDENT_14 IDENT_15 = new org . apache . ambari . server . controller . METHOD_4 ( STRING_0 , null , STRING_1 , STRING_2 , null ) ; java . util . Set < org . apache . ambari . server . controller . METHOD_4 > IDENT_16 = new java . util . HashSet ( ) ; IDENT_16 . add ( IDENT_15 ) ; org . apache . ambari . server . controller . IDENT_17 . METHOD_5 ( IDENT_2 , IDENT_5 , null , IDENT_13 , METHOD_3 ( org . apache . ambari . server . controller . IDENT_18 . class ) , null , null ) ; expect ( org . apache . ambari . server . controller . IDENT_17 . IDENT_19 . METHOD_6 ( STRING_0 ) ) . andReturn ( cluster ) ; expect ( org . apache . ambari . server . controller . IDENT_17 . IDENT_19 . METHOD_7 ( STRING_2 ) ) . andReturn ( java . util . Collections . METHOD_8 ( cluster ) ) ; expect ( cluster . METHOD_9 ( STRING_3 ) ) . andReturn ( service ) ; expect ( cluster . METHOD_10 ( STRING_1 ) ) . andReturn ( service ) ; expect ( service . METHOD_11 ( STRING_1 ) ) . andReturn ( component ) ; expect ( service . getName ( ) ) . andReturn ( STRING_3 ) ; expect ( component . getName ( ) ) . andReturn ( STRING_1 ) . METHOD_12 ( ) ; expect ( component . METHOD_13 ( ) ) . andReturn ( null ) ; replay ( IDENT_13 , IDENT_2 , org . apache . ambari . server . controller . IDENT_17 . IDENT_19 , cluster , host , IDENT_7 , org . apache . ambari . server . controller . IDENT_17 . IDENT_20 , service , component ) ; org . apache . ambari . server . controller . IDENT_4 controller = new org . apache . ambari . server . controller . METHOD_14 ( null , org . apache . ambari . server . controller . IDENT_17 . IDENT_19 , IDENT_2 ) ; METHOD_15 ( org . apache . ambari . server . controller . IDENT_17 . IDENT_20 , controller ) ; try { controller . METHOD_16 ( IDENT_16 ) ; org . junit . Assert . fail ( STRING_4 ) ; } catch ( org . apache . ambari . server . IDENT_21 e ) { } "<AssertPlaceHolder>" ; verify ( IDENT_2 , org . apache . ambari . server . controller . IDENT_17 . IDENT_19 , cluster , host , IDENT_7 , org . apache . ambari . server . controller . IDENT_17 . IDENT_20 , service , component ) ; } getValue ( ) { java . lang . Object o = ( ( delegate ) == null ) ? null : delegate . getValue ( ) ; return o == null ? null : o . toString ( ) ; }
org . junit . Assert . assertSame ( controller , IDENT_5 . getValue ( ) )