.getReferencingForReferenced(referencedDataRecordIdentifier);
assertEquals(BAD_SIZE, 1, list.size());
assertEquals("bad value", referencingDataRecordIdentifier, list.get(0));
ReferenceLink referenceLink = linkRecordManager
.searchByReferenced(referencedDataRecordIdentifier);
int linkCount = referenceLink
.getLinkCount(referencingDataRecordIdentifier);
assertEquals("bad link count", 2, linkCount);
removeReferenceLink(referencingDataRecordIdentifier,
referencedDataRecordIdentifier);
list = linkRecordManager
.getReferencingForReferenced(referencedDataRecordIdentifier);
assertEquals(BAD_SIZE, 1, list.size());
referenceLink = linkRecordManager
.searchByReferenced(referencedDataRecordIdentifier);
linkCount = referenceLink.getLinkCount(referencingDataRecordIdentifier);
assertEquals("bad link count", 1, linkCount);
}