METHOD_0 ( ) { org . junit . IDENT_0 . METHOD_1 ( org . apache . hadoop . io . IDENT_1 . IDENT_2 . METHOD_2 ( ) ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . METHOD_3 ( IDENT_3 . IDENT_4 , 0 ) ; conf . METHOD_3 ( IDENT_3 . IDENT_5 , 3 ) ; conf . set ( IDENT_6 . IDENT_7 , STRING_0 ) ; org . apache . hadoop . security . IDENT_8 . METHOD_4 ( conf ) ; java . io . File IDENT_9 = new java . io . File ( STRING_1 4 , ( ( org . apache . IDENT_10 . IDENT_11 . IDENT_12 . class . METHOD_5 ( ) ) + STRING_2 ) ) . METHOD_6 ( ) ; conf . set ( IDENT_13 . IDENT_14 , IDENT_9 . getAbsolutePath ( ) ) ; org . apache . hadoop . yarn . api . records . IDENT_15 IDENT_16 = org . apache . hadoop . yarn . api . records . IDENT_15 . newInstance ( INT_0 , 1 ) ; org . apache . IDENT_10 . IDENT_11 . IDENT_12 . LOG . info ( IDENT_16 . toString ( ) ) ; java . lang . String IDENT_17 = STRING_3 ; java . lang . String user = STRING_4 ; java . lang . String IDENT_18 = STRING_5 ; java . util . List < java . io . File > IDENT_19 = new java . util . ArrayList < java . io . File > ( ) ; org . apache . IDENT_10 . IDENT_11 . IDENT_12 . METHOD_7 ( IDENT_9 , user , IDENT_16 . toString ( ) , IDENT_17 , conf , IDENT_19 ) ; org . apache . IDENT_10 . IDENT_11 . IDENT_3 IDENT_20 = new org . apache . IDENT_10 . IDENT_11 . METHOD_8 ( ) { @ org . apache . IDENT_10 . IDENT_11 . Override MOD_0 org . apache . IDENT_10 . IDENT_11 . IDENT_21 METHOD_9 ( org . apache . hadoop . conf . Configuration conf ) { return new org . apache . IDENT_10 . IDENT_11 . METHOD_10 ( conf ) { @ org . apache . IDENT_10 . IDENT_11 . Override MOD_0 void METHOD_11 ( java . lang . String IDENT_22 , org . jboss . netty . channel . IDENT_23 ctx , org . jboss . netty . handler . codec . http . IDENT_24 request , org . jboss . netty . handler . codec . http . IDENT_25 response , java . net . URL IDENT_26 ) throws java . io . IOException { } } ; } } ; IDENT_20 . init ( conf ) ; try { IDENT_20 . start ( ) ; org . apache . hadoop . io . IDENT_27 IDENT_28 = new org . apache . hadoop . io . METHOD_12 ( ) ; IDENT_28 . METHOD_13 ( ) ; org . apache . hadoop . security . token . IDENT_29 < org . apache . IDENT_10 . common . security . IDENT_30 > IDENT_31 = new org . apache . hadoop . security . token . IDENT_29 < org . apache . IDENT_10 . common . security . IDENT_30 > ( STRING_6 . getBytes ( ) , STRING_1 FLOAT_0 getBytes ( ) , new org . apache . hadoop . io . METHOD_14 ( user ) , new org . apache . hadoop . io . METHOD_14 ( STRING_1 1 ) ) ; IDENT_31 . write ( IDENT_28 ) ; IDENT_20 . METHOD_15 ( new org . apache . hadoop . yarn . server . api . METHOD_16 ( user , IDENT_16 , java . nio . ByteBuffer . METHOD_17 ( IDENT_28 . METHOD_18 ( ) , 0 , IDENT_28 . METHOD_19 ( ) ) ) ) ; java . net . URL url = new java . net . URL ( ( ( ( ( STRING_7 + ( IDENT_20 . METHOD_20 ( ) . get ( METHOD_8 . IDENT_4 ) ) ) + STRING_1 2 ) + IDENT_18 ) + STRING_8 ) ) ; java . net . IDENT_32 conn = ( ( java . net . IDENT_32 ) ( url . METHOD_21 ( ) ) ) ; conn . METHOD_22 ( IDENT_33 . IDENT_34 , IDENT_33 . IDENT_35 ) ; conn . METHOD_22 ( IDENT_33 . IDENT_36 , IDENT_33 . IDENT_37 ) ; conn . connect ( ) ; byte [ ] IDENT_38 = new byte [ INT_1 ] ; try { java . io . IDENT_39 is = new java . io . METHOD_23 ( conn . METHOD_24 ( ) ) ; is . METHOD_25 ( IDENT_38 ) ; } catch ( java . io . IDENT_40 e ) { } java . io . IDENT_41 is = new java . io . METHOD_26 ( IDENT_19 . get ( 0 ) ) ; java . lang . String IDENT_42 = IDENT_2 . IDENT_43 . METHOD_27 ( is . METHOD_28 ( ) ) . METHOD_29 ( ) ; is . close ( ) ; java . lang . String message = ( ( ( ( ( STRING_1 3 + IDENT_42 ) + STRING_1 ) + ( IDENT_19 . get ( 0 ) . getAbsolutePath ( ) ) ) + STRING_1 0 ) + user ) + STRING_9 ; "<AssertPlaceHolder>" ; } finally { IDENT_20 . METHOD_30 ( ) ; org . apache . hadoop . fs . IDENT_44 . METHOD_31 ( IDENT_9 ) ; } } get ( org . apache . hadoop . yarn . api . records . IDENT_45 ) { return IDENT_46 . get ( IDENT_47 ) ; }
org . junit . Assert . assertTrue ( new java . lang . String ( IDENT_38 ) . contains ( message ) )