METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; final org . apache . hadoop . yarn . client . api . IDENT_0 . impl . IDENT_1 . IDENT_2 IDENT_3 = new org . apache . hadoop . yarn . client . api . IDENT_0 . impl . IDENT_1 . METHOD_1 ( ) ; @ org . apache . hadoop . yarn . client . api . IDENT_0 . impl . METHOD_2 ( STRING_0 ) org . apache . hadoop . yarn . client . api . IDENT_4 < org . apache . hadoop . yarn . client . api . IDENT_4 . IDENT_5 > client = mock ( org . apache . hadoop . yarn . client . api . impl . IDENT_6 . class ) ; java . util . List < org . apache . hadoop . yarn . api . records . IDENT_7 > IDENT_8 = java . util . Arrays . asList ( org . apache . hadoop . yarn . api . records . IDENT_7 . newInstance ( org . apache . hadoop . yarn . client . api . IDENT_0 . impl . IDENT_1 . METHOD_3 ( 0 , 0 , 0 , 0 ) , IDENT_9 . IDENT_10 , "" , 0 ) ) ; final org . apache . hadoop . yarn . api . IDENT_11 . IDENT_12 response = METHOD_4 ( IDENT_8 , new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_13 > ( ) , null ) ; when ( client . METHOD_5 ( METHOD_6 ( ) ) ) . thenReturn ( response ) ; org . apache . hadoop . yarn . client . api . IDENT_0 . IDENT_14 < org . apache . hadoop . yarn . client . api . IDENT_4 . IDENT_5 > IDENT_15 = org . apache . hadoop . yarn . client . api . IDENT_0 . IDENT_14 . METHOD_7 ( client , 20 , IDENT_3 ) ; IDENT_3 . IDENT_16 = IDENT_15 ; IDENT_15 . init ( conf ) ; IDENT_15 . start ( ) ; com . google . common . base . IDENT_17 < java . lang . Boolean > IDENT_18 = new com . google . common . base . IDENT_17 < java . lang . Boolean > ( ) { @ org . apache . hadoop . yarn . client . api . IDENT_0 . impl . Override public org . apache . hadoop . yarn . client . api . IDENT_0 . impl . Boolean get ( ) { return IDENT_3 . IDENT_19 ; } } ; IDENT_15 . METHOD_8 ( STRING_1 , INT_0 , null ) ; IDENT_15 . METHOD_9 ( IDENT_18 ) ; "<AssertPlaceHolder>" ; } get ( ) { return count ; }
org . junit . Assert . assertTrue ( IDENT_18 . get ( ) )