public void testTapInputStreamReadArrayWithOffset() throws Exception {
TapInputStream tis = new TapInputStream(new ByteArrayInputStream("ABCD".getBytes()));
assertEquals(2, tis.read(new byte[4], 2, 2));
assertEquals("AB", tis.asString());
}
@Test
public void testTapInputStreamWithMarkAndReset() throws Exception {