return Collections.singletonList(p);
}
public void testDefaultFactory()
{
SpringLookupFactory lf = new SpringLookupFactory();
MockControl control = newControl(BeanFactory.class);
BeanFactory beanFactory = (BeanFactory) control.getMock();
MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
ServiceImplementationFactoryParameters fp = (ServiceImplementationFactoryParameters) fpc
.getMock();
lf.setDefaultBeanFactory(beanFactory);
List params = buildParameters("fred", null);
Object fred = new Object();
beanFactory.getBean("fred", List.class);
control.setReturnValue(fred);
fp.getParameters();
fpc.setReturnValue(params);
fp.getServiceInterface();
fpc.setReturnValue(List.class);
replayControls();
Object actual = lf.createCoreServiceImplementation(fp);
assertSame(fred, actual);
verifyControls();
}