### Question:
AvailableBufferedInputStream extends InputStream { public String toString() { return(new String(m_buffer, m_read, m_end - m_read)); } AvailableBufferedInputStream(InputStream input);  AvailableBufferedInputStream(InputStream input, int bufferSize); int getBufferSize(); int read(); int read(byte buffer[], int offset, int length); int peek(); int available(); void unread(int data); String toString();  }### Answer:
@Test public void testToString() throws IOException { int i; assertEquals("", m_input.toString()); m_output.write(new byte[]{'h', 'e', 'l', 'l', 'o'}); m_output.flush(); m_input.available(); assertEquals("hello", m_input.toString()); for (i = 5; --i >= 0; ) m_input.read(); }