buffer.position(4);
buffer.flip();
assertEquals(0, buffer.position());
assertEquals(4, buffer.limit());
assertEquals(4, buffer.remaining());
buffer.clear();
assertEquals(64, buffer.capacity());
assertEquals(0, buffer.position());
assertEquals(64, buffer.limit());