checkDefinition(moduleDefinitionSource);
}
public void testGetModuleDefinitionDuffFromFour() {
setExistingDefinition("impala-core", "sample-module2");
IncrementalModuleDefinitionSource moduleDefinitionSource = new IncrementalModuleDefinitionSource(resolver, typeReaderRegistry, rootModuleDefinition, "duff-module");
try {
moduleDefinitionSource.getModuleDefinition();
} catch (ConfigurationException e) {
assertTrue(e.getMessage().contains("Application is using internally defined module structure, but no module.properties file is present on the classpath for module 'duff-module'"));
}
}