@Test
public void testRewind() {

    final VirtualIndexBuffer buffer = new VirtualIndexBuffer(5, Mode.Points);
    assertEquals(5, buffer.remaining());
    buffer.get();
    assertEquals(4, buffer.remaining());
    buffer.rewind();
    assertEquals(5, buffer.remaining());
}