public static long readUint32(ByteBuffer buf) throws BufferUnderflowException {
        return Integer.toUnsignedLong(buf.order(ByteOrder.LITTLE_ENDIAN).getInt());
    }
@Test(expected = ArrayIndexOutOfBoundsException.class)
    public void testReadUint32ThrowsException3() {
        ByteUtils.readUint32(new byte[]{1, 2, 3, 4, 5}, -1);
    }