@Override
    public int readUnsignedShort() throws EOFException {
        return readShort() & 0xffff;
    }
@Test
    public void testReadUnsignedShort() throws Exception {
        byte[] bytes1 = {0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 1, -1, -1, -1, -1};
        in.init(bytes1, bytes1.length - 4);
        int unsigned = in.readUnsignedShort();
        assertEquals(0xFFFF, unsigned);
    }