### Question:
SplitInputStream { private void expand() { int length; byte buffer[]; buffer = m_buffer; length = buffer.length; m_buffer = Arrays.copyOf(buffer, 2 * length); System.arraycopy(buffer, 0, m_buffer, length, length); } SplitInputStream(InputStream source, int streamCount);  SplitInputStream(InputStream source, int streamCount, int initialSize); int getStreamCount(); InputStream getStream(int index);  }### Answer:
@Test public void expand() throws IOException { int i, length; length = 2 * SplitInputStream.INITIAL_BUFFER_SIZE; initialize(length, SplitInputStream.INITIAL_BUFFER_SIZE); for (i = 0; i < length; i++) { assertEquals(length - i, m_input.available()); assertEquals(m_expect[i] & 0x0FF, m_input.read()); } }