buf.limit(5);
assertEquals(4, buf.indexOf((byte) 0x1));
assertEquals(-1, buf.indexOf((byte) 0x2));
assertEquals(2, buf.indexOf((byte) 0x3));
assertEquals(3, buf.indexOf((byte) 0x4));
}
}
// We need an enum with 64 values
private static enum TestEnum {