ServicePointImpl sp = new ServicePointImpl(module, definition);
Object service = new ArrayList();
MockControl factoryc = newControl(ServiceModelFactory.class);
ServiceModelFactory factory = (ServiceModelFactory) factoryc.getMock();
MockControl modelc = newControl(ServiceModel.class);
ServiceModel model = (ServiceModel) modelc.getMock();
module.getServiceModelFactory("fred");
modulec.setReturnValue(factory);
factory.createServiceModelForService(sp);
factoryc.setReturnValue(model);
model.getService();
modelc.setReturnValue(service);