testFindResolvedModule(bundleRes, moduleNameStr, expectedPath);
}
protected void testFindResolvedModule(AbstractBundleResolution bundleRes, String moduleNameStr, Path expectedPath)
throws ParseSourceException {
ModuleFullName moduleFullName = new ModuleFullName(moduleNameStr);
ResolvedModule resolvedModule = bundleRes.findResolvedModule(moduleFullName);
Path modulePath = resolvedModule == null ? null : resolvedModule.getModulePath();
assertAreEqual(modulePath, expectedPath);
if(expectedPath != null) {
assertEquals(bundleRes.findModule(moduleFullName.getPackages(), moduleFullName.getModuleSimpleName()),
resolvedModule.getModuleNode());
}
}