IoBuffer buf = IoBuffer.wrap(array, 3, 4);
assertEquals(3, buf.position());
assertEquals(7, buf.limit());
assertEquals(10, buf.capacity());
buf.clear();
assertEquals(0, buf.position());
assertEquals(10, buf.limit());
assertEquals(10, buf.capacity());
}