private ISpecificationSource newSource(INamespace application, INamespace framework,
Resource resource, IComponentSpecification pageSpec)
{
MockControl control = newControl(ISpecificationSource.class);
ISpecificationSource source = (ISpecificationSource) control.getMock();
source.getApplicationNamespace();
control.setReturnValue(application);
source.getFrameworkNamespace();
control.setReturnValue(framework);
source.getPageSpecification(resource);
control.setReturnValue(pageSpec);
return source;
}