}
});
}
public static void assertChain(TestdataChainedObject... chainedObjects) {
TestdataChainedObject chainedObject = chainedObjects[0];
for (int i = 1; i < chainedObjects.length; i++) {
TestdataChainedEntity chainedEntity = (TestdataChainedEntity) chainedObjects[i];
assertEquals("Chained entity (" + chainedEntity + ")'s chainedObject",
chainedObject, chainedEntity.getChainedObject());
chainedObject = chainedEntity;