METHOD_0 ( ) { final int IDENT_0 = 2 ; org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_2 < org . apache . hadoop . io . IDENT_3 , org . apache . hadoop . io . IDENT_3 > IDENT_4 = METHOD_1 ( new org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_5 < org . apache . hadoop . io . IDENT_3 , org . apache . hadoop . io . IDENT_3 > ( job , id , IDENT_6 , 100 , null , true ) ) ; when ( IDENT_6 . METHOD_2 ( any ( org . apache . hadoop . mapreduce . IDENT_7 . class ) , METHOD_3 ( ) , METHOD_4 ( ) ) ) . thenReturn ( IDENT_4 ) ; METHOD_5 ( ) . when ( IDENT_6 ) . METHOD_6 ( ) ; when ( IDENT_8 . METHOD_7 ( ) ) . thenReturn ( host ) ; java . lang . String IDENT_9 = org . apache . hadoop . mapreduce . security . IDENT_10 . METHOD_8 ( IDENT_11 . getBytes ( ) , key ) ; when ( connection . METHOD_9 ( ) ) . thenReturn ( 200 ) ; when ( connection . METHOD_10 ( IDENT_12 . IDENT_13 ) ) . thenReturn ( IDENT_12 . IDENT_14 ) ; when ( connection . METHOD_10 ( IDENT_12 . IDENT_15 ) ) . thenReturn ( IDENT_12 . IDENT_16 ) ; when ( connection . METHOD_10 ( IDENT_10 . IDENT_17 ) ) . thenReturn ( IDENT_9 ) ; org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_12 header = new org . apache . hadoop . mapreduce . task . IDENT_1 . METHOD_11 ( IDENT_18 . toString ( ) , 10 , 10 , 1 ) ; java . io . ByteArrayOutputStream IDENT_19 = new java . io . ByteArrayOutputStream ( ) ; header . write ( new java . io . METHOD_12 ( IDENT_19 ) ) ; final org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_20 . IDENT_21 in = new org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_20 . METHOD_13 ( new java . io . ByteArrayInputStream ( IDENT_19 . toByteArray ( ) ) ) ; when ( connection . METHOD_14 ( ) ) . thenReturn ( in ) ; METHOD_15 ( new org . mockito . IDENT_22 . IDENT_23 < java . lang . IDENT_24 > ( ) { public java . lang . IDENT_24 METHOD_16 ( org . mockito . IDENT_25 . IDENT_26 IDENT_27 ) throws java . io . IOException { in . close ( ) ; return null ; } } ) . when ( connection ) . METHOD_17 ( ) ; org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_28 < org . apache . hadoop . io . IDENT_3 , org . apache . hadoop . io . IDENT_3 > IDENT_29 = new org . apache . hadoop . mapreduce . task . IDENT_1 . IDENT_20 . IDENT_30 < org . apache . hadoop . io . IDENT_3 , org . apache . hadoop . io . IDENT_3 > ( job , id , IDENT_8 , IDENT_6 , r , metrics , IDENT_31 , key , connection , IDENT_0 ) ; IDENT_29 . start ( ) ; in . METHOD_18 ( ) ; IDENT_29 . METHOD_19 ( ) ; IDENT_29 . join ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 ) . METHOD_20 ( ) ; } METHOD_21 ( ) { return IDENT_32 ; }
org . junit . Assert . assertTrue ( in . METHOD_21 ( ) )