METHOD_0 ( ) { java . lang . String str = STRING_0 ; org . IDENT_0 . IDENT_1 . util . IDENT_2 queue = new org . IDENT_0 . IDENT_1 . util . METHOD_1 ( 10 ) ; org . IDENT_0 . IDENT_1 . util . IDENT_3 instance = new org . IDENT_0 . IDENT_1 . util . METHOD_2 ( queue ) ; instance . write ( str . getBytes ( IDENT_4 . UTF_8 ) ) ; "<AssertPlaceHolder>" ; } read ( java . io . InputStream ) { java . util . IDENT_5 IDENT_6 = new java . util . METHOD_3 ( 0 ) ; java . util . METHOD_3 data = new java . util . METHOD_3 ( 1 ) ; for ( int j = 0 ; j < ( size ) ; j ++ ) { byte [ ] buf = new byte [ IDENT_6 . METHOD_4 ( INT_0 ) ] ; data . METHOD_5 ( buf ) ; java . io . ByteArrayOutputStream IDENT_7 = new java . io . ByteArrayOutputStream ( ) ; ( ( hudson . IDENT_1 . IDENT_8 ) ( i ) ) . METHOD_6 ( IDENT_7 ) ; org . junit . Assert . assertEquals ( buf . length , IDENT_7 . size ( ) ) ; org . junit . Assert . assertArrayEquals ( buf , IDENT_7 . toByteArray ( ) ) ; } org . junit . Assert . assertEquals ( ( - 1 ) , i . read ( ) ) ; i . close ( ) ; }
org . junit . Assert . assertThat ( read ( queue ) , org . hamcrest . Matchers . is ( str ) )