METHOD_0 ( ) { @ org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_3 . METHOD_1 ( STRING_0 ) java . util . concurrent . IDENT_4 < org . apache . hadoop . yarn . api . records . IDENT_5 , org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . IDENT_6 > IDENT_7 = mock ( java . util . concurrent . IDENT_4 . class ) ; org . apache . hadoop . yarn . server . IDENT_0 . Context IDENT_8 = mock ( org . apache . hadoop . yarn . server . IDENT_0 . Context . class ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_9 . IDENT_10 mock = mock ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_9 . IDENT_10 . class ) ; when ( IDENT_8 . METHOD_2 ( ) ) . thenReturn ( mock ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . IDENT_11 IDENT_12 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . METHOD_3 ( ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . METHOD_3 . IDENT_13 IDENT_14 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . METHOD_3 . METHOD_4 ( ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_3 . IDENT_15 IDENT_16 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_3 . METHOD_5 ( STRING_1 , INT_0 , STRING_1 , 4 ) ; IDENT_14 . METHOD_6 ( java . util . Arrays . asList ( IDENT_16 ) ) ; IDENT_12 . METHOD_7 ( STRING_2 , IDENT_14 ) ; when ( IDENT_17 . METHOD_8 ( ) ) . thenReturn ( IDENT_12 ) ; when ( IDENT_7 . get ( any ( ) ) ) . thenReturn ( IDENT_17 ) ; when ( IDENT_8 . METHOD_9 ( ) ) . thenReturn ( IDENT_7 ) ; IDENT_18 = new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_3 . METHOD_10 ( conf , IDENT_8 ) ; IDENT_18 . METHOD_11 ( conf ) ; IDENT_18 . METHOD_12 ( org . apache . hadoop . yarn . api . records . IDENT_5 . METHOD_13 ( STRING_3 ) ) ; METHOD_14 ( STRING_4 , org . apache . hadoop . yarn . api . records . IDENT_19 . newInstance ( INT_1 , 1 ) , "1" , "1" ) ; when ( IDENT_17 . METHOD_15 ( ) ) . thenReturn ( org . apache . hadoop . yarn . api . records . IDENT_5 . METHOD_13 ( STRING_4 ) ) ; when ( IDENT_17 . getResource ( ) ) . thenReturn ( org . apache . hadoop . yarn . api . records . IDENT_19 . newInstance ( INT_1 , 4 ) ) ; java . util . List < org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 . IDENT_21 > IDENT_22 = IDENT_18 . METHOD_16 ( IDENT_17 ) ; "<AssertPlaceHolder>" ; } METHOD_16 ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . container . IDENT_6 ) { java . lang . String IDENT_23 = container . METHOD_15 ( ) . toString ( ) ; IDENT_24 . METHOD_17 ( IDENT_25 . IDENT_26 . IDENT_27 , IDENT_23 ) ; try { IDENT_24 . METHOD_18 ( IDENT_25 . IDENT_26 . IDENT_27 , IDENT_23 , IDENT_25 . IDENT_28 , org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_29 . IDENT_30 ) ; } catch ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_31 IDENT_32 ) { IDENT_24 . METHOD_19 ( IDENT_25 . IDENT_26 . IDENT_27 , IDENT_23 ) ; org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . resources . IDENT_29 . LOG . warn ( STRING_5 , IDENT_32 ) ; throw IDENT_32 ; } java . util . List < org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 . IDENT_21 > ret = new java . util . ArrayList ( ) ; ret . add ( new org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 . METHOD_20 ( METHOD_20 . IDENT_33 . IDENT_34 , ( ( org . apache . hadoop . yarn . server . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 . METHOD_20 . IDENT_35 ) + ( IDENT_24 . METHOD_21 ( IDENT_25 . IDENT_26 . IDENT_27 , IDENT_23 ) ) ) ) ) ; return ret ; }
org . junit . Assert . assertNull ( METHOD_16 )