METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . io . File file = com . IDENT_1 . tests . TestUtils . METHOD_1 ( STRING_1 ) ; java . io . IDENT_2 IDENT_3 = new java . io . METHOD_2 ( file ) ; IDENT_3 . write ( IDENT_0 ) ; IDENT_3 . close ( ) ; java . net . URL url = file . METHOD_3 ( ) . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . net . URL ) { java . net . IDENT_4 connection = url . METHOD_6 ( ) ; connection . connect ( ) ; java . io . InputStream is = connection . METHOD_7 ( ) ; char [ ] buf = new char [ INT_0 ] ; java . io . IDENT_5 r = new java . io . METHOD_8 ( is , STRING_2 ) ; java . lang . StringBuilder s = new java . lang . StringBuilder ( ) ; while ( true ) { int n = r . read ( buf ) ; if ( n < 0 ) { break ; } s . append ( buf , 0 , n ) ; } is . close ( ) ; r . close ( ) ; return s . toString ( ) ; }
org . junit . Assert . assertEquals ( IDENT_0 , action . METHOD_5 ( url ) )