public class TestCountingStreams extends StoreTestBase
{
public void testCountingInputStream() throws Exception
{
byte[] INPUT = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
CountingInputStream in = new CountingInputStream(new ByteArrayInputStream(INPUT), new IncrementalMurmur3Hasher());
assertEquals(1, in.read());
byte[] buffer = new byte[8];
assertEquals(4, in.read(buffer, 2, 4));
for (int i = 0; i < 4; ++i) {