METHOD_0 ( ) { java . io . ByteArrayOutputStream IDENT_0 = new java . io . ByteArrayOutputStream ( ) ; IDENT_0 . write ( IDENT_1 . read ( ) ) ; IDENT_0 . write ( IDENT_1 . read ( ) ) ; IDENT_0 . write ( IDENT_1 . read ( ) ) ; byte [ ] buf = new byte [ INT_0 ] ; int read = - 1 ; while ( ( read = IDENT_1 . read ( buf ) ) != ( - 1 ) ) { IDENT_0 . write ( buf , 0 , read ) ; } IDENT_1 . close ( ) ; IDENT_0 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { java . io . File IDENT_2 = new java . io . File ( getClass ( ) . getResource ( STRING_0 ) . getPath ( ) ) ; java . io . ByteArrayOutputStream expected = new java . io . ByteArrayOutputStream ( ) ; java . io . IDENT_3 IDENT_4 = new java . io . METHOD_3 ( IDENT_2 ) ; int IDENT_5 = - 1 ; byte [ ] IDENT_6 = new byte [ INT_0 ] ; while ( ( IDENT_5 = IDENT_4 . read ( IDENT_6 ) ) != ( - 1 ) ) { expected . write ( IDENT_6 , 0 , IDENT_5 ) ; } expected . METHOD_1 ( ) ; IDENT_4 . close ( ) ; return expected . toByteArray ( ) ; }
org . junit . Assert . assertArrayEquals ( METHOD_2 ( ) , IDENT_0 . toByteArray ( ) )