}
public void testInSpecification()
{
MockControl specControl = newControl(IApplicationSpecification.class);
IApplicationSpecification spec = (IApplicationSpecification) specControl.getMock();
Runnable r = (Runnable) newMock(Runnable.class);
MockControl fpc = newControl(ServiceImplementationFactoryParameters.class);
ServiceImplementationFactoryParameters fp = (ServiceImplementationFactoryParameters) fpc
.getMock();
// Training
fp.getParameters();
fpc.setReturnValue(createParameters("foo.bar"));
fp.getServiceInterface();
fpc.setReturnValue(Runnable.class);
spec.checkExtension("foo.bar");
specControl.setReturnValue(true);
spec.getExtension("foo.bar", Runnable.class);
specControl.setReturnValue(r);
replayControls();
ExtensionLookupFactory f = new ExtensionLookupFactory();