}
public void testPipelineFactoryNoTerminator()
{
MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
ServiceImplementationFactoryParameters fp = (ServiceImplementationFactoryParameters) fpc
.getMock();
ClassFactory cf = new ClassFactoryImpl();
DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();
dib.setClassFactory(cf);
PipelineFactory factory = new PipelineFactory();
factory.setClassFactory(cf);
factory.setDefaultImplementationBuilder(dib);
factory.setErrorLog(newErrorLog());
PipelineParameters pp = new PipelineParameters();
pp.setFilterInterface(StandardFilter.class);
List l = new ArrayList();
FilterContribution fc = new FilterContribution();
fc.setFilter(new StandardFilterImpl());
fc.setName("multiplier-filter");
l.add(fc);
TerminatorContribution tc = new TerminatorContribution();
tc.setTerminator(new StandardServiceImpl());
l.add(tc);
pp.setPipelineConfiguration(l);
fp.getParameters();
fpc.setReturnValue(Collections.singletonList(pp));
fp.getServiceId();
fpc.setReturnValue("example");
fp.getServiceInterface();
fpc.setReturnValue(StandardService.class);
replayControls();
StandardService s = (StandardService) factory.createCoreServiceImplementation(fp);