@Test
public void testTapOutputStreamWriteArrayWithOffset() throws Exception {
ByteArrayOutputStream os = new ByteArrayOutputStream();
TapOutputStream tos = new TapOutputStream(os);
tos.write("ABCD".getBytes(), 1, 2);
assertEquals("BC", tos.asString());
assertEquals("BC", new String(os.toByteArray()));
}