METHOD_0 ( ) { IDENT_0 . add ( new org . IDENT_1 . METHOD_1 ( ) { @ org . IDENT_1 . handler . Override public void METHOD_2 ( org . IDENT_1 . IDENT_2 request , org . IDENT_1 . IDENT_3 response , org . IDENT_1 . IDENT_4 control ) throws org . IDENT_1 . handler . Exception { java . lang . String body = STRING_0 ; java . util . List < java . net . IDENT_5 > IDENT_6 = METHOD_3 ( request . METHOD_4 ( ) ) ; for ( java . net . IDENT_5 IDENT_7 : METHOD_4 ) { body += ( ( " " + ( IDENT_7 . getName ( ) ) ) + STRING_1 ) + ( IDENT_7 . getValue ( ) ) ; } response . header ( "a" 0 , body . length ( ) ) . content ( body ) . end ( ) ; } } ) . start ( ) . get ( ) ; java . net . IDENT_8 IDENT_9 = METHOD_5 ( IDENT_0 , "a" 1 ) ; IDENT_9 . METHOD_6 ( STRING_2 , new java . net . METHOD_7 ( "a" , "b" ) . toString ( ) ) ; IDENT_9 . METHOD_6 ( STRING_2 , ( ( ( new java . net . METHOD_7 ( STRING_3 , STRING_4 ) . toString ( ) ) + STRING_5 ) + ( new java . net . METHOD_7 ( STRING_6 , "a" 2 ) . toString ( ) ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( java . net . IDENT_8 ) { int length = IDENT_9 . METHOD_9 ( ) ; byte [ ] buffer = new byte [ length == ( - 1 ) ? org . IDENT_1 . IDENT_10 . IDENT_11 . IDENT_12 : length ] ; int read = 0 ; while ( ( length == ( - 1 ) ) || ( read < length ) ) { int IDENT_13 = IDENT_9 . METHOD_10 ( ) . read ( buffer , read , ( ( buffer . length ) - read ) ) ; if ( IDENT_13 == ( - 1 ) ) { break ; } else { read += IDENT_13 ; } } IDENT_9 . METHOD_10 ( ) . close ( ) ; if ( ( length != ( - 1 ) ) && ( length != read ) ) { throw new java . io . IOException ( ( ( ( ( STRING_7 + length ) + STRING_8 ) + read ) + STRING_9 ) ) ; } return new java . lang . String ( buffer , 0 , read ) ; }
org . junit . Assert . assertEquals ( "a" 3 , METHOD_8 ( IDENT_9 ) )