METHOD_0 ( ) { java . lang . String data = STRING_0 ; byte [ ] bytes = data . getBytes ( ) ; IDENT_0 . util . ByteArrayOutputStream IDENT_1 = new IDENT_0 . util . ByteArrayOutputStream ( ) ; IDENT_2 . METHOD_1 ( new IDENT_0 . util . ByteArrayInputStream ( bytes ) , IDENT_1 , bytes . length ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( IDENT_0 . util . InputStream , IDENT_0 . util . IDENT_3 , int ) { int IDENT_4 = java . lang . Math . min ( INT_0 , length ) ; byte [ ] buf = new byte [ IDENT_4 ] ; try { for ( int IDENT_5 = 0 , read ; ( IDENT_5 < length ) && ( ( read = is . read ( buf , 0 , java . lang . Math . min ( IDENT_4 , ( length - IDENT_5 ) ) ) ) != ( - 1 ) ) ; IDENT_5 += read ) { IDENT_6 . write ( buf , 0 , read ) ; IDENT_6 . METHOD_2 ( ) ; } } catch ( IDENT_0 . util . IOException e ) { throw new java . lang . RuntimeException ( e ) ; } }
org . junit . Assert . assertThat ( new java . lang . String ( IDENT_1 . toByteArray ( ) ) , org . hamcrest . CoreMatchers . equalTo ( data ) )