ModuleDescriptorConverter fileModuleDescriptorConverter = context.mock(ModuleDescriptorConverter.class, "file");
IvyFactory ivyFactory = context.mock(IvyFactory.class);
IvyDependencyResolver ivyDependencyResolver = context.mock(IvyDependencyResolver.class);
IvyDependencyPublisher ivyDependencyPublisher = context.mock(IvyDependencyPublisher.class);
ClassGenerator classGenerator = new AsmBackedClassGenerator();
DefaultConfigurationContainer configurationContainer = (DefaultConfigurationContainer)
new DefaultConfigurationContainerFactory(clientModuleRegistry, settingsConverter,
resolveModuleDescriptorConverter, publishModuleDescriptorConverter,
fileModuleDescriptorConverter, ivyFactory,
ivyDependencyResolver, ivyDependencyPublisher, classGenerator).createConfigurationContainer(resolverProviderDummy,
dependencyMetaDataProviderStub, context.mock(DomainObjectContext.class));
assertThat(configurationContainer.getIvyService(), instanceOf(ErrorHandlingIvyService.class));
ErrorHandlingIvyService errorHandlingService = (ErrorHandlingIvyService) configurationContainer.getIvyService();
assertThat(errorHandlingService.getIvyService(), instanceOf(ShortcircuitEmptyConfigsIvyService.class));
ShortcircuitEmptyConfigsIvyService service = (ShortcircuitEmptyConfigsIvyService) errorHandlingService.getIvyService();
assertThat(service.getIvyService(), instanceOf(DefaultIvyService.class));