METHOD_0 ( ) { com . google . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( com . google . IDENT_0 . IDENT_1 . class ) ; org . apache . ambari . server . IDENT_3 . IDENT_4 IDENT_5 = METHOD_1 ( org . apache . ambari . server . IDENT_3 . IDENT_4 . class ) ; org . apache . ambari . server . state . IDENT_6 cluster = METHOD_1 ( org . apache . ambari . server . state . IDENT_6 . class ) ; org . apache . ambari . server . state . IDENT_7 service = METHOD_1 ( org . apache . ambari . server . state . IDENT_7 . class ) ; org . apache . ambari . server . state . IDENT_8 component = METHOD_1 ( org . apache . ambari . server . state . IDENT_8 . class ) ; java . util . Map < java . lang . String , org . apache . ambari . server . state . IDENT_9 > IDENT_10 = METHOD_1 ( java . util . Map . class ) ; java . util . Set < java . lang . String > IDENT_11 = METHOD_1 ( java . util . Set . class ) ; expect ( IDENT_10 . isEmpty ( ) ) . andReturn ( false ) ; expect ( IDENT_10 . METHOD_2 ( ) ) . andReturn ( IDENT_11 ) ; expect ( component . METHOD_3 ( ) ) . andReturn ( IDENT_10 ) . times ( 2 ) ; replay ( cluster , service , component , IDENT_2 , IDENT_5 , IDENT_10 , IDENT_11 ) ; org . apache . ambari . server . controller . IDENT_12 controller = METHOD_4 ( org . apache . ambari . server . controller . IDENT_12 . class ) . METHOD_5 ( STRING_0 ) . METHOD_5 ( STRING_1 ) . METHOD_6 ( IDENT_5 , org . apache . ambari . server . controller . IDENT_13 . IDENT_14 , IDENT_2 ) . METHOD_7 ( ) ; expect ( controller . METHOD_8 ( IDENT_11 ) ) . andReturn ( STRING_2 ) ; controller . METHOD_9 ( IDENT_11 , service , cluster , IDENT_15 . Type . IDENT_6 ) ; METHOD_10 ( ) . METHOD_11 ( ) ; replay ( controller ) ; java . lang . String host = controller . METHOD_12 ( cluster , service , component ) ; "<AssertPlaceHolder>" ; verify ( controller , cluster , service , component , IDENT_2 , IDENT_10 ) ; } METHOD_12 ( org . apache . ambari . server . state . IDENT_6 , org . apache . ambari . server . state . IDENT_7 , org . apache . ambari . server . state . IDENT_8 ) { if ( ( IDENT_16 != null ) && ( ! ( IDENT_16 . METHOD_3 ( ) . isEmpty ( ) ) ) ) { java . util . Set < java . lang . String > IDENT_17 = IDENT_16 . METHOD_3 ( ) . METHOD_2 ( ) ; METHOD_9 ( IDENT_17 , service , cluster , IDENT_15 . Type . IDENT_6 ) ; return METHOD_8 ( IDENT_17 ) ; } return null ; }
org . junit . Assert . assertEquals ( STRING_2 , host )