ASTNode node = DeeSearchEngineTestUtils.getNodeFromPath(deeModule, nodeTreePath);
final DefUnit defUnit = (DefUnit) node;
final HashSet<Reference> expectedReferences = defUnitToReferencesMap.get(key);
IMember element = DeeModelEngine.findCorrespondingModelElement(defUnit, sourceModule);
// if(element == null) {
// // TODO: consider this case
// continue;
// }
final String keyIdentifier = DeeSearchEngineTestUtils.getModelElementFQName(element);
doTestSearchForElementReferences(element, new MatchChecker(){
@Override
public void checkMatch(SearchMatch match) throws CoreException {
IMember refElement = assertInstance(match.getElement(), IMember.class);
ISourceModule module = getSourceModule(refElement);
checkKey(module, match.getOffset(), keyIdentifier);
checkReferences(expectedReferences, match);
}