METHOD_0 ( ) { when ( client . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( org . apache . hadoop . yarn . api . records . IDENT_0 . newInstance ( STRING_0 ) , org . apache . hadoop . yarn . api . records . IDENT_0 . newInstance ( STRING_1 ) ) ) ; org . apache . hadoop . yarn . client . cli . IDENT_1 cli = METHOD_2 ( ) ; IDENT_1 . IDENT_2 = mock ( org . apache . hadoop . yarn . IDENT_3 . IDENT_4 . class ) ; when ( IDENT_1 . IDENT_2 . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( org . apache . hadoop . yarn . api . records . IDENT_0 . newInstance ( STRING_2 ) , org . apache . hadoop . yarn . api . records . IDENT_0 . newInstance ( STRING_3 ) ) ) ; int IDENT_5 = cli . run ( new java . lang . String [ ] { IDENT_1 . IDENT_6 , STRING_4 + ( IDENT_1 . IDENT_7 ) , STRING_4 + ( IDENT_1 . IDENT_8 ) } ) ; "<AssertPlaceHolder>" ; java . io . ByteArrayOutputStream IDENT_9 = new java . io . ByteArrayOutputStream ( ) ; java . io . IDENT_10 IDENT_11 = new java . io . METHOD_3 ( IDENT_9 ) ; IDENT_11 . METHOD_4 ( STRING_5 ) ; IDENT_11 . close ( ) ; verify ( IDENT_12 ) . println ( IDENT_9 . toString ( STRING_6 ) ) ; } run ( java . util . Collection , org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_14 , org . apache . hadoop . conf . Configuration ) { final long IDENT_15 = ( ( conf . METHOD_5 ( IDENT_16 . IDENT_17 , IDENT_16 . IDENT_18 , TimeUnit . IDENT_19 , TimeUnit . IDENT_20 ) ) * 2 ) + ( conf . METHOD_5 ( IDENT_16 . IDENT_21 , IDENT_16 . IDENT_22 , TimeUnit . IDENT_19 , TimeUnit . IDENT_20 ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . LOG . info ( ( STRING_7 + IDENT_24 ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . LOG . info ( ( STRING_8 + p ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . LOG . info ( ( STRING_9 + ( p . METHOD_6 ( ) ) ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . LOG . info ( ( STRING_10 + ( p . METHOD_7 ( ) ) ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . LOG . info ( ( STRING_11 + ( p . METHOD_8 ( ) ) ) ) ; org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . METHOD_9 ( conf ) ; System . out . println ( STRING_12 ) ; java . util . List < org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_25 > IDENT_26 = java . util . Collections . emptyList ( ) ; try { IDENT_26 = org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_25 . METHOD_10 ( IDENT_24 , org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . class . METHOD_11 ( ) , org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 . IDENT_27 , conf , p . METHOD_12 ( ) ) ; boolean IDENT_28 = false ; for ( int IDENT_29 = 0 ; ! IDENT_28 ; IDENT_29 ++ ) { IDENT_28 = true ; java . util . Collections . METHOD_13 ( IDENT_26 ) ; for ( org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_25 IDENT_30 : IDENT_26 ) { if ( ( ( p . METHOD_14 ( ) . size ( ) ) == 0 ) || ( p . METHOD_14 ( ) . contains ( IDENT_30 . METHOD_15 ( ) ) ) ) { final org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_23 b = new org . apache . hadoop . hdfs . server . IDENT_13 . METHOD_16 ( IDENT_30 , p , conf ) ; final org . apache . hadoop . hdfs . server . IDENT_13 . METHOD_16 . Result r = b . METHOD_17 ( ) ; r . METHOD_4 ( IDENT_29 , System . out ) ; b . METHOD_18 ( conf ) ; if ( ( r . IDENT_31 ) == ( IDENT_32 . IDENT_33 ) ) { IDENT_28 = false ; } else if ( ( r . IDENT_31 ) != ( IDENT_32 . IDENT_34 ) ) { return r . IDENT_31 . METHOD_19 ( ) ; } } else { org . apache . hadoop . hdfs . server . IDENT_13 . METHOD_16 . LOG . info ( ( STRING_13 + ( IDENT_30 . METHOD_15 ( ) ) ) ) ; } } if ( ! IDENT_28 ) { java . lang . Thread . sleep ( IDENT_15 ) ; } } } finally { for ( org . apache . hadoop . hdfs . server . IDENT_13 . IDENT_25 IDENT_30 : IDENT_26 ) { org . apache . hadoop . io . IDENT_35 . METHOD_20 ( org . apache . hadoop . hdfs . server . IDENT_13 . METHOD_16 . LOG , IDENT_30 ) ; } } return IDENT_32 . IDENT_34 . METHOD_19 ( ) ; }
org . junit . Assert . assertEquals ( 0 , IDENT_5 )