METHOD_0 ( ) { java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; byte [ ] IDENT_0 = STRING_0 . getBytes ( IDENT_1 . UTF_8 ) ; org . apache . IDENT_2 . api . data . IDENT_3 IDENT_4 = org . apache . IDENT_2 . api . data . IDENT_3 . of ( IDENT_0 ) ; byte [ ] IDENT_5 = new byte [ INT_0 ] ; java . util . Arrays . METHOD_1 ( IDENT_5 , ( ( byte ) ( INT_1 ) ) ) ; org . apache . IDENT_2 . api . data . IDENT_3 IDENT_6 = org . apache . IDENT_2 . api . data . IDENT_3 . of ( IDENT_5 ) ; IDENT_4 . METHOD_2 ( out ) ; IDENT_6 . METHOD_2 ( out ) ; byte [ ] expected = new byte [ ( IDENT_0 . length ) + ( IDENT_5 . length ) ] ; java . lang . System . METHOD_3 ( IDENT_0 , 0 , expected , 0 , IDENT_0 . length ) ; java . lang . System . METHOD_3 ( IDENT_5 , 0 , expected , IDENT_0 . length , IDENT_5 . length ) ; "<AssertPlaceHolder>" ; out . close ( ) ; } METHOD_2 ( java . io . IDENT_7 ) { if ( ( length ) <= INT_2 ) { int end = ( offset ) + ( length ) ; for ( int i = offset ; i < end ; i ++ ) { out . write ( data [ i ] ) ; } } else { out . write ( toArray ( ) ) ; } }
org . junit . Assert . assertArrayEquals ( expected , out . toByteArray ( ) )