public static long readInt64(ByteBuffer buf) throws BufferUnderflowException {
        return buf.order(ByteOrder.LITTLE_ENDIAN).getLong();
    }
@Test(expected = ArrayIndexOutOfBoundsException.class)
    public void testReadInt64ThrowsException2() {
        ByteUtils.readInt64(new byte[]{1, 2, 3, 4, 5, 6, 7, 8, 9}, 2);
    }