@Test
public void testSize() {

    final VirtualIndexBuffer bufferTriangleFan = new VirtualIndexBuffer(5, Mode.TriangleFan);
    assertEquals(9, bufferTriangleFan.size());
    final VirtualIndexBuffer bufferLineLoop = new VirtualIndexBuffer(8, Mode.LineLoop);
    assertEquals(15, bufferLineLoop.size());
    final VirtualIndexBuffer bufferPoints = new VirtualIndexBuffer(8, Mode.Points);
    assertEquals(8, bufferPoints.size());
    final VirtualIndexBuffer bufferLines = new VirtualIndexBuffer(8, Mode.Lines);
    assertEquals(8, bufferLines.size());
    final VirtualIndexBuffer bufferLineStrip = new VirtualIndexBuffer(8, Mode.LineStrip);
    assertEquals(14, bufferLineStrip.size());
    final VirtualIndexBuffer bufferTriangles = new VirtualIndexBuffer(8, Mode.Triangles);
    assertEquals(8, bufferTriangles.size());
    final VirtualIndexBuffer bufferTriangleStrip = new VirtualIndexBuffer(8, Mode.TriangleStrip);
    assertEquals(18, bufferTriangleStrip.size());
}