@Test
public void testReadOneByteIntByteArrayInt () {

    byte[] bytes = new byte[1];
    for (int i = 0; i < 256; i++) {
        int twoByte = ReadWrite.readOneByteInt(bytes, 0);
        if (i != twoByte) {
            System.out.println(i + " " + java.util.Arrays.toString(bytes) + ReadWrite.readOneByteInt(bytes, 0));
            Assert.fail("wrong number read");
        } else
            increment(bytes);
    }
}