@Test
public final void testArrayDeleteIdentity()
{
final Interfaces i = this.getInterfaces("main");
final JCGLArrayBuffersType ga = i.getArrayBuffers();
final JCGLArrayObjectsType go = i.getArrayObjects();
final JCGLArrayBufferType a =
ga.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW);
final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder();
Assert.assertTrue(b.getMaximumVertexAttributes() >= 16);
b.setAttributeFloatingPoint(
0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false);
final JCGLArrayObjectType ai = go.arrayObjectAllocate(b);
go.arrayObjectDelete(ai);
Assert.assertTrue(ai.isDeleted());
final Set<JCGLReferableType> ai_refs = ai.getReferences();
Assert.assertEquals(0L, (long) ai_refs.size());
final Set<JCGLReferenceContainerType> a_refs = a.getReferringContainers();
Assert.assertEquals(0L, (long) a_refs.size());
}