{
public void testFound()
{
DefaultErrorHandler errorHandler = new DefaultErrorHandler();
RegistryDefinition definition = new RegistryDefinitionImpl();
ModuleDefinitionImpl fooBar = createModuleDefinition("foo.bar");
ServicePointDefinitionImpl spd = createServicePointDefinition(fooBar, "sp1", Runnable.class);
fooBar.addServicePoint(spd);
ModuleDefinitionImpl zipZoop = createModuleDefinition("zip.zoop");
ConfigurationPointDefinition cpd = createConfigurationPointDefinition(fooBar, "cp1");
zipZoop.addConfigurationPoint(cpd);
definition.addModule(fooBar);
definition.addModule(zipZoop);
RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(errorHandler,
LogFactory.getLog(TestRegistryInfrastructureConstructor.class), null);
RegistryInfrastructure registryInfrastructure = ric.constructRegistryInfrastructure(definition);