METHOD_0 ( ) { org . apache . http . impl . client . IDENT_0 IDENT_1 = mock ( org . apache . http . impl . client . IDENT_0 . class ) ; java . lang . String url = STRING_0 ; org . apache . http . client . methods . IDENT_2 IDENT_3 = mock ( org . apache . http . client . methods . IDENT_2 . class ) ; when ( IDENT_1 . execute ( any ( org . apache . http . client . methods . IDENT_4 . class ) ) ) . thenReturn ( IDENT_3 ) ; org . apache . http . IDENT_5 IDENT_6 = mock ( org . apache . http . IDENT_5 . class ) ; when ( IDENT_6 . getStatusCode ( ) ) . thenReturn ( 200 ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( IDENT_6 ) ; org . apache . http . IDENT_7 IDENT_8 = mock ( org . apache . http . IDENT_7 . class ) ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( IDENT_8 ) ; java . io . File IDENT_9 = java . nio . file . IDENT_10 . get ( IDENT_11 . METHOD_3 ( ) . getPath ( ) , STRING_1 ) . METHOD_4 ( ) ; java . io . IDENT_12 writer = new java . io . METHOD_5 ( new java . io . METHOD_6 ( IDENT_9 . getAbsolutePath ( ) ) ) ; writer . write ( STRING_2 ) ; writer . close ( ) ; java . io . InputStream IDENT_13 = new java . io . METHOD_7 ( IDENT_9 ) ; when ( IDENT_8 . METHOD_8 ( ) ) . thenReturn ( new java . io . InputStream ( ) { @ org . apache . hadoop . IDENT_14 . IDENT_15 . Override public int read ( ) throws java . io . IOException { return IDENT_13 . read ( ) ; } } ) ; java . io . InputStream IDENT_16 = org . apache . hadoop . IDENT_14 . IDENT_15 . IDENT_17 . METHOD_9 ( IDENT_1 , url ) ; java . lang . String IDENT_18 = org . apache . commons . io . IDENT_19 . toString ( IDENT_16 , java . nio . IDENT_20 . IDENT_21 . METHOD_10 ( ) ) ; "<AssertPlaceHolder>" ; } toString ( boolean , boolean ) { return toString ( IDENT_22 , IDENT_23 , false , null ) ; }
org . junit . Assert . assertEquals ( STRING_2 , IDENT_18 )