METHOD_0 ( ) { int port = ( ( int ) ( ( ( java . lang . System . currentTimeMillis ( ) ) OP_0 1000 ) + INT_0 ) ) ; io . IDENT_0 . IDENT_1 . IDENT_2 IDENT_1 = io . IDENT_0 . IDENT_1 . IDENT_2 . create ( ) . METHOD_1 ( METHOD_2 ( ) ) ; io . IDENT_0 . http . IDENT_3 server = io . IDENT_0 . http . IDENT_3 . create ( IDENT_1 , ( request ) -> io . IDENT_0 . IDENT_4 . IDENT_5 . METHOD_3 ( ( cb ) -> IDENT_1 . METHOD_4 ( ( ) -> cb . set ( io . IDENT_0 . http . IDENT_6 . METHOD_5 ( ) . METHOD_6 ( METHOD_7 ( request . METHOD_8 ( ) . METHOD_9 ( ) ) ) ) ) ) ) . METHOD_10 ( port ) ; server . METHOD_11 ( ) ; java . lang . Thread IDENT_7 = new java . lang . Thread ( IDENT_1 ) ; IDENT_7 . start ( ) ; java . net . IDENT_8 IDENT_9 = new java . net . METHOD_12 ( ) ; IDENT_9 . connect ( new java . net . METHOD_13 ( STRING_0 , port ) ) ; io . IDENT_0 . http . IDENT_10 . write ( IDENT_9 , STRING_1 ) ; io . IDENT_0 . http . IDENT_10 . METHOD_14 ( IDENT_9 . METHOD_15 ( ) , STRING_2 ) ; io . IDENT_0 . http . IDENT_10 . write ( IDENT_9 , STRING_3 ) ; io . IDENT_0 . http . IDENT_10 . METHOD_14 ( IDENT_9 . METHOD_15 ( ) , STRING_2 ) ; io . IDENT_0 . http . IDENT_10 . write ( IDENT_9 , STRING_4 ) ; io . IDENT_0 . http . IDENT_10 . METHOD_14 ( IDENT_9 . METHOD_15 ( ) , STRING_5 ) ; "<AssertPlaceHolder>" ; IDENT_9 . close ( ) ; server . METHOD_16 ( ) . get ( ) ; IDENT_7 . join ( ) ; } toByteArray ( java . io . InputStream ) { byte [ ] bytes ; try { java . io . ByteArrayOutputStream IDENT_11 = new java . io . ByteArrayOutputStream ( ) ; byte [ ] data = new byte [ INT_1 ] ; int count ; while ( ( count = is . read ( data ) ) != ( - 1 ) ) { IDENT_11 . write ( data , 0 , count ) ; } IDENT_11 . METHOD_17 ( ) ; IDENT_11 . close ( ) ; is . close ( ) ; bytes = IDENT_11 . toByteArray ( ) ; } catch ( java . io . IOException e ) { throw new java . lang . METHOD_18 ( e ) ; } return bytes ; }
org . junit . Assert . assertEquals ( 0 , io . IDENT_0 . http . TestUtils . toByteArray ( IDENT_9 . METHOD_15 ( ) ) . length )