public class StreamTappingUnitTest {
@Test
public void testTapInputStreamReadChars() throws Exception {
TapInputStream tis = new TapInputStream(new ByteArrayInputStream("ABCD".getBytes()));
assertEquals(65, tis.read());
assertEquals(66, tis.read());
assertEquals("AB", tis.asString());
}