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