METHOD_0 ( ) { METHOD_1 ( ) ; org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = new org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . METHOD_2 ( null ) ; METHOD_3 ( IDENT_3 ) ; org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_4 IDENT_5 = new org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . METHOD_4 ( STRING_0 ) ; org . apache . ambari . server . configuration . IDENT_6 IDENT_7 = mock ( org . apache . ambari . server . configuration . IDENT_6 . class ) ; org . apache . ambari . server . controller . metrics . IDENT_0 . cache . IDENT_8 IDENT_9 = org . easymock . EasyMock . METHOD_5 ( org . apache . ambari . server . controller . metrics . IDENT_0 . cache . IDENT_8 . class ) ; org . apache . ambari . server . controller . metrics . IDENT_0 . cache . IDENT_10 IDENT_11 = org . easymock . EasyMock . METHOD_5 ( org . apache . ambari . server . controller . metrics . IDENT_0 . cache . IDENT_10 . class ) ; expect ( IDENT_9 . METHOD_6 ( ) ) . andReturn ( IDENT_11 ) . METHOD_7 ( ) ; java . util . Map < java . lang . String , java . util . Map < java . lang . String , org . apache . ambari . server . controller . internal . IDENT_12 > > IDENT_13 = org . apache . ambari . server . controller . IDENT_14 . IDENT_15 . METHOD_8 ( IDENT_16 . Type . IDENT_17 ) ; java . util . Set < org . apache . ambari . server . controller . spi . IDENT_16 > resources = new java . util . HashSet ( ) ; for ( int i = 0 ; i < ( 100 + 1 ) ; i ++ ) { org . apache . ambari . server . controller . spi . IDENT_16 resource = new org . apache . ambari . server . controller . internal . METHOD_9 ( IDENT_16 . Type . IDENT_18 ) ; resource . setProperty ( org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_19 , STRING_1 ) ; resource . setProperty ( org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_20 , ( STRING_2 + i ) ) ; resource . setProperty ( org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_21 , STRING_3 ) ; resources . add ( resource ) ; } java . util . Map < java . lang . String , org . apache . ambari . server . controller . spi . IDENT_22 > IDENT_23 = new java . util . HashMap ( ) ; IDENT_23 . put ( org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_24 , new org . apache . ambari . server . controller . internal . METHOD_10 ( INT_0 , INT_1 , 1L ) ) ; org . apache . ambari . server . controller . spi . IDENT_25 request = org . apache . ambari . server . controller . IDENT_14 . IDENT_15 . METHOD_11 ( new java . util . HashSet < java . lang . String > ( ) { { add ( org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_24 ) ; add ( STRING_4 ) ; } } , IDENT_23 ) ; org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_26 IDENT_27 = new org . apache . ambari . server . controller . metrics . IDENT_0 . METHOD_12 ( IDENT_13 , IDENT_3 , IDENT_7 , IDENT_9 , IDENT_5 , org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_19 , org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_20 , org . apache . ambari . server . controller . metrics . IDENT_0 . IDENT_1 . IDENT_21 ) ; java . util . Set < org . apache . ambari . server . controller . spi . IDENT_16 > IDENT_28 = IDENT_27 . METHOD_13 ( resources , request , null ) ; java . util . List < java . lang . String > IDENT_29 = new java . util . ArrayList ( IDENT_3 . METHOD_14 ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { java . util . Set < java . lang . String > nodes = new java . util . HashSet < java . lang . String > ( ) ; for ( org . apache . ambari . IDENT_30 . model . IDENT_31 . IDENT_32 entry : IDENT_33 ) { nodes . add ( entry . METHOD_15 ( ) ) ; nodes . addAll ( entry . METHOD_16 ( ) ) ; } return nodes . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_29 . size ( ) )