METHOD_0 ( ) { io . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = io . IDENT_0 . IDENT_1 . IDENT_2 . create ( ) . METHOD_1 ( METHOD_2 ( ) ) . METHOD_3 ( ) ; io . IDENT_0 . http . IDENT_4 IDENT_5 = io . IDENT_0 . http . IDENT_4 . create ( IDENT_3 , ( request ) -> io . IDENT_0 . IDENT_6 . IDENT_7 . of ( io . IDENT_0 . http . IDENT_8 . METHOD_4 ( ) . METHOD_5 ( METHOD_6 ( request . METHOD_7 ( ) . METHOD_8 ( ) ) ) ) ) . METHOD_9 ( io . IDENT_0 . http . IDENT_9 . IDENT_10 ) ; IDENT_5 . METHOD_10 ( ) ; java . lang . Thread IDENT_11 = new java . lang . Thread ( IDENT_3 ) ; IDENT_11 . start ( ) ; io . IDENT_0 . IDENT_1 . IDENT_2 IDENT_12 = io . IDENT_0 . IDENT_1 . IDENT_2 . create ( ) . METHOD_1 ( METHOD_2 ( ) ) . METHOD_3 ( ) ; io . IDENT_0 . http . IDENT_13 IDENT_14 = io . IDENT_0 . http . IDENT_13 . create ( IDENT_12 ) . METHOD_11 ( io . IDENT_0 . IDENT_15 . IDENT_16 . create ( IDENT_12 , io . IDENT_0 . IDENT_15 . IDENT_17 . create ( IDENT_12 ) . METHOD_12 ( io . IDENT_0 . net . IDENT_18 . create ( ) ) . METHOD_13 ( io . IDENT_0 . http . IDENT_19 . METHOD_14 ( STRING_0 ) ) ) ) ; io . IDENT_0 . http . IDENT_4 IDENT_20 = io . IDENT_0 . http . IDENT_4 . create ( IDENT_12 , ( request ) -> { java . lang . String path = ( io . IDENT_0 . http . IDENT_9 . IDENT_10 ) + ( request . METHOD_7 ( ) . getPath ( ) ) ; return IDENT_14 . request ( io . IDENT_0 . http . IDENT_21 . get ( ( STRING_1 + path ) ) ) . METHOD_15 ( ( result ) -> result . METHOD_16 ( ) . map ( ( body ) -> io . IDENT_0 . http . IDENT_8 . METHOD_17 ( result . getCode ( ) ) . METHOD_5 ( METHOD_6 ( ( STRING_2 + ( body . METHOD_18 ( io . IDENT_0 . http . UTF_8 ) ) ) ) ) ) ) ; } ) . METHOD_9 ( io . IDENT_0 . http . IDENT_9 . IDENT_22 ) ; IDENT_20 . METHOD_10 ( ) ; java . lang . Thread IDENT_23 = new java . lang . Thread ( IDENT_12 ) ; IDENT_23 . start ( ) ; java . net . IDENT_24 IDENT_25 = new java . net . METHOD_19 ( ) ; IDENT_25 . connect ( new java . net . METHOD_20 ( STRING_3 , io . IDENT_0 . http . IDENT_9 . IDENT_22 ) ) ; java . io . IDENT_26 stream = IDENT_25 . METHOD_21 ( ) ; stream . write ( METHOD_6 ( STRING_4 ) ) ; METHOD_22 ( IDENT_25 . METHOD_23 ( ) , STRING_5 ) ; stream . write ( METHOD_6 ( STRING_6 ) ) ; METHOD_22 ( IDENT_25 . METHOD_23 ( ) , STRING_7 ) ; IDENT_14 . METHOD_24 ( ) . execute ( IDENT_14 :: IDENT_27 ) ; IDENT_5 . METHOD_25 ( ) . get ( ) ; IDENT_20 . METHOD_25 ( ) . get ( ) ; "<AssertPlaceHolder>" ; IDENT_25 . close ( ) ; IDENT_11 . join ( ) ; IDENT_23 . join ( ) ; } toByteArray ( java . io . InputStream ) { byte [ ] bytes ; try { java . io . ByteArrayOutputStream IDENT_28 = new java . io . ByteArrayOutputStream ( ) ; byte [ ] data = new byte [ INT_0 ] ; int count ; while ( ( count = is . read ( data ) ) != ( - 1 ) ) { IDENT_28 . write ( data , 0 , count ) ; } IDENT_28 . METHOD_26 ( ) ; IDENT_28 . close ( ) ; is . close ( ) ; bytes = IDENT_28 . toByteArray ( ) ; } catch ( java . io . IOException e ) { throw new java . lang . METHOD_27 ( e ) ; } return bytes ; }
org . junit . Assert . assertEquals ( 0 , io . IDENT_0 . http . TestUtils . toByteArray ( IDENT_25 . METHOD_23 ( ) ) . length )