AutowiringStrategyContribution contrib3 = new AutowiringStrategyContribution(strategy3,
"strategy3", null, null);
strategyContributions.add(contrib3);
MockControl registryControl = newControl(RegistryInfrastructure.class);
RegistryInfrastructure registry = (RegistryInfrastructure) registryControl.getMock();
ServiceAutowireTarget target = new ServiceAutowireTarget();
// Training
strategy1.autowireProperty(registry, target, "stringHolder");
strategy1Control.setReturnValue(false);
registry.containsService(StringHolder.class, null);
registryControl.setReturnValue(true);
registry.getService(StringHolder.class, null);
registryControl.setReturnValue(new StringHolderImpl());
replayControls();
Autowiring autowiring = new AutowiringImpl(registry, strategyContributions, new DefaultErrorHandler());