@Test
public void testReadTwoByteIntByteArrayInt () {

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