assertEquals(-1, buffer.read());
assertEquals(-1, buffer.read(b2));
assertEquals(-1, buffer.read(b2, 0, b2.length));
assertTrue(buffer.isEndOfStream());
buffer.reset();
assertFalse(buffer.isEndOfStream());
}
public void testOutputBufferOperations() throws IOException {
ByteArrayOutputStream outstream = new ByteArrayOutputStream();