assertTrue("Did not find all references " + elements, elements.size() == 0);
fieldA[2][1][2][3] = null;
references = registry.getArrayOwners(arr);
assertEquals(1, references.size());
ArrayReference reference = references.get(0);
assertEquals(ClassForReference.class, reference.getRootObject());
assertEquals("staticA", reference.getRootField());
assertEquals(4, reference.getNestedArrayIndices().size());
assertEquals(new Integer(0), reference.getNestedArrayIndices().get(0));
assertEquals(new Integer(1), reference.getNestedArrayIndices().get(1));
assertEquals(new Integer(2), reference.getNestedArrayIndices().get(2));
assertEquals(new Integer(2), reference.getNestedArrayIndices().get(3));
((Object[])staticA[0][1][2])[2] = null;
references = registry.getArrayOwners(arr);
assertNull(references);
}