for (int index = 0; index < referencedSons.length; index++) {
final ObjectClassInfoAndDeclared objectClassInfoAndDeclared = referencedSons[index];
assertEquals("bad declared class for field #" + index,
declaredClass[index], objectClassInfoAndDeclared
.getDeclaredClassInfo().getObjectClass());
final ObjectAndPersistInfo objectAndPersistInfo = objectClassInfoAndDeclared
.getObjectAndPersistInfo();
assertEquals("bad referenced class for field #" + index,
referencedClass[index],
objectAndPersistInfo.objectClassInfo.getObjectClass());
assertSame("bad son object", sonObject[index],
objectAndPersistInfo.getObject());
}
}