METHOD_0 ( ) { final org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . METHOD_1 ( IDENT_0 . IDENT_1 , FLOAT_0 ) ; final org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_3 . IDENT_4 IDENT_2 = new org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_3 . METHOD_2 ( conf ) ; IDENT_2 . start ( ) ; final org . apache . hadoop . yarn . server . IDENT_5 . IDENT_6 . IDENT_7 app = IDENT_2 . METHOD_3 ( INT_0 ) ; IDENT_2 . METHOD_4 ( ) ; final java . lang . String host = STRING_0 ; final org . apache . hadoop . yarn . server . IDENT_5 . IDENT_8 IDENT_9 = IDENT_2 . METHOD_5 ( java . lang . String . format ( STRING_1 , host ) , INT_1 ) ; IDENT_9 . METHOD_6 ( true ) ; IDENT_2 . METHOD_4 ( ) ; final org . apache . hadoop . yarn . api . records . IDENT_10 IDENT_11 = app . METHOD_7 ( ) . METHOD_8 ( ) ; IDENT_2 . METHOD_9 ( IDENT_11 ) ; IDENT_2 . METHOD_4 ( ) ; final org . apache . hadoop . mapreduce . v2 . api . records . IDENT_12 IDENT_13 = org . apache . hadoop . mapreduce . v2 . util . IDENT_14 . METHOD_10 ( IDENT_11 . METHOD_11 ( ) , 0 ) ; final org . apache . hadoop . mapreduce . v2 . app . job . IDENT_15 IDENT_16 = mock ( org . apache . hadoop . mapreduce . v2 . app . job . IDENT_15 . class ) ; when ( IDENT_16 . METHOD_12 ( ) ) . thenReturn ( org . apache . hadoop . mapreduce . v2 . util . IDENT_14 . METHOD_13 ( IDENT_13 , STRING_2 , STRING_3 , IDENT_17 . IDENT_18 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , STRING_4 , null , false , "" ) ) ; final org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_3 . IDENT_19 IDENT_20 = new org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_3 . METHOD_14 ( IDENT_2 , conf , IDENT_11 , IDENT_16 , org . apache . hadoop . yarn . util . IDENT_21 . getInstance ( ) ) ; final java . lang . String [ ] IDENT_22 = new java . lang . String [ ] { host } ; IDENT_20 . METHOD_15 ( org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_23 . METHOD_16 ( IDENT_13 , 0 , org . apache . hadoop . yarn . api . records . IDENT_24 . newInstance ( INT_2 , 1 ) , IDENT_22 , false , true ) ) ; IDENT_20 . METHOD_17 ( ) ; IDENT_20 . METHOD_18 ( ) ; IDENT_9 . METHOD_6 ( true ) ; IDENT_2 . METHOD_4 ( ) ; IDENT_20 . METHOD_15 ( org . apache . hadoop . mapreduce . v2 . app . IDENT_2 . IDENT_23 . METHOD_16 ( IDENT_13 , 1 , org . apache . hadoop . yarn . api . records . IDENT_24 . newInstance ( INT_2 , 1 ) , IDENT_22 , false , false ) ) ; int IDENT_25 ; for ( IDENT_25 = 0 ; IDENT_25 < 1 ; ) { IDENT_25 += IDENT_20 . METHOD_19 ( ) . size ( ) ; IDENT_9 . METHOD_6 ( true ) ; IDENT_2 . METHOD_4 ( ) ; } "<AssertPlaceHolder>" ; } METHOD_4 ( ) { org . apache . hadoop . yarn . event . IDENT_26 IDENT_27 = METHOD_20 ( ) ; if ( IDENT_27 instanceof org . apache . hadoop . yarn . event . IDENT_28 ) { ( ( org . apache . hadoop . yarn . event . IDENT_28 ) ( IDENT_27 ) ) . METHOD_21 ( ) ; } else { throw new java . lang . METHOD_22 ( STRING_5 ) ; } }
org . junit . Assert . assertEquals ( IDENT_25 , 1 )