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());
autowiring.autowireProperties(target, new String[] {"stringHolder"});
verifyControls();
assertNotNull(target.getStringHolder());
}