final ObjectIOManager objectIOManager = filePersistence
.getObjectIOManager();
final IHeapDataManager dataManager = filePersistence
.getDataManager();
referenceLinkGraphFromStorage = new ReferenceLinkGraph();
final Set<DataRecordIdentifier> forObjectDatarecordIdentifierSet = dataManager
.getDataRecordIdentifierSet();
forObjectDatarecordIdentifierSet
.remove(new DataRecordIdentifier(0));
Set<DataRecordIdentifier> setToUpdate = new TreeSet<DataRecordIdentifier>();
filePersistence.usedForGarbageManagement(setToUpdate);
filePersistence.usedForClassNameManagement(setToUpdate);
forObjectDatarecordIdentifierSet.removeAll(setToUpdate);
for (DataRecordIdentifier referencingDataRecordIdentifier : forObjectDatarecordIdentifierSet) {
final ObjectLinkTreeNode objectLinkTreeNode = objectIOManager
.getObjectLinkTreeNode(referencingDataRecordIdentifier);
final DataRecordIdentifier[] referencedList = objectLinkTreeNode
.getReferencedList();
referenceLinkGraphFromStorage.addReferenced(
referencingDataRecordIdentifier, referencedList);
}
/* graph from storage content */
referenceLinkGraphFromStorage
.compute(StoreForTest.IDENTIFIER_FOR_ROOT);
/* graph from link informations */
referenceLinkGraphFromLinkInfo = new ReferenceLinkGraph();
for (ReferenceLink referenceLink : referenceLinks) {
final DataRecordIdentifier referencedDataRecordIdentifier = referenceLink
.getReferencedDataRecordIdentifier();
TestCase.assertTrue("referenced not in storage", dataManager