public void testWrapSubArray() throws Exception {
byte[] array = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
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());