Buffer buffer = newBuffer(random.nextInt(100) + 10);
buffer.skip(1);
assertEquals(buffer.position(), 1);
buffer.skip(2);
assertEquals(buffer.position(), 3);
buffer.skip(buffer.remaining());
assertEquals(buffer.position(), buffer.limit());
}
public void testIndexOf() {
Buffer buffer = newBuffer(256);