METHOD_0 ( ) { org . apache . hadoop . yarn . client . api . IDENT_0 client = mock ( org . apache . hadoop . yarn . client . api . IDENT_0 . class ) ; when ( client . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( org . apache . hadoop . yarn . api . records . IDENT_1 . newInstance ( STRING_0 ) , org . apache . hadoop . yarn . api . records . IDENT_1 . newInstance ( STRING_1 ) ) ) ; org . apache . hadoop . yarn . client . cli . IDENT_2 cli = new org . apache . hadoop . yarn . client . cli . METHOD_2 ( ) ; cli . METHOD_3 ( client ) ; cli . METHOD_4 ( IDENT_3 ) ; cli . METHOD_5 ( IDENT_4 ) ; int IDENT_5 = cli . run ( new java . lang . String [ ] { METHOD_2 . IDENT_6 , STRING_2 + ( METHOD_2 . IDENT_7 ) } ) ; "<AssertPlaceHolder>" ; java . io . ByteArrayOutputStream IDENT_8 = new java . io . ByteArrayOutputStream ( ) ; java . io . IDENT_9 IDENT_10 = new java . io . METHOD_6 ( IDENT_8 ) ; IDENT_10 . METHOD_7 ( STRING_3 ) ; IDENT_10 . close ( ) ; verify ( IDENT_3 ) . println ( IDENT_8 . toString ( STRING_4 ) ) ; } run ( org . apache . hadoop . hdfs . server . IDENT_11 . Map , org . apache . hadoop . conf . Configuration ) { final long IDENT_12 = ( ( conf . METHOD_8 ( IDENT_13 . IDENT_14 , IDENT_13 . IDENT_15 ) ) * INT_0 ) + ( ( conf . METHOD_8 ( IDENT_13 . IDENT_16 , IDENT_13 . IDENT_17 ) ) * 1000 ) ; org . apache . hadoop . hdfs . server . IDENT_11 . IDENT_18 . LOG . info ( ( STRING_5 + IDENT_19 ) ) ; org . apache . hadoop . hdfs . server . IDENT_11 . List < org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_21 > IDENT_22 = org . apache . hadoop . hdfs . server . IDENT_11 . Collections . emptyList ( ) ; try { IDENT_22 = org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_21 . METHOD_9 ( IDENT_19 , org . apache . hadoop . hdfs . server . IDENT_11 . IDENT_18 . class . METHOD_10 ( ) , org . apache . hadoop . hdfs . server . IDENT_11 . IDENT_18 . IDENT_23 , conf , IDENT_21 . IDENT_24 ) ; while ( ( IDENT_22 . size ( ) ) > 0 ) { org . apache . hadoop . hdfs . server . IDENT_11 . Collections . METHOD_11 ( IDENT_22 ) ; org . apache . hadoop . hdfs . server . IDENT_11 . Iterator < org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_21 > IDENT_25 = IDENT_22 . iterator ( ) ; while ( IDENT_25 . hasNext ( ) ) { org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_21 IDENT_26 = IDENT_25 . next ( ) ; final org . apache . hadoop . hdfs . server . IDENT_11 . IDENT_18 m = new org . apache . hadoop . hdfs . server . IDENT_11 . METHOD_12 ( IDENT_26 , conf ) ; final org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_27 r = m . run ( ) ; if ( r == ( org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_27 . IDENT_28 ) ) { org . apache . hadoop . io . IDENT_29 . METHOD_13 ( org . apache . hadoop . hdfs . server . IDENT_11 . METHOD_12 . LOG , IDENT_26 ) ; IDENT_25 . remove ( ) ; } else if ( r != ( org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_27 . IDENT_30 ) ) { return r . METHOD_14 ( ) ; } } java . lang . Thread . sleep ( IDENT_12 ) ; } return IDENT_27 . IDENT_28 . METHOD_14 ( ) ; } finally { for ( org . apache . hadoop . hdfs . server . IDENT_20 . IDENT_21 IDENT_26 : IDENT_22 ) { org . apache . hadoop . io . IDENT_29 . METHOD_13 ( org . apache . hadoop . hdfs . server . IDENT_11 . METHOD_12 . LOG , IDENT_26 ) ; } } }
org . junit . Assert . assertEquals ( 0 , IDENT_5 )