    @Test
    public void testReadByteByByte() throws IOException {


        ByteArrayInputStream bais = new ByteArrayInputStream(DATA);
        SnifferInputStream sis = new SnifferInputStream(snifferSocket, bais);

        int read;
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        while ((read = sis.read()) != -1) {
            baos.write(read);
        }

        verify(snifferSocket, times(4)).logSocket(anyLong(), eq(1), eq(0));
        verify(snifferSocket).logSocket(anyLong(), eq(0), eq(0));

    }