MockControl logc = newControl(Log.class);
Log log = (Log) logc.getMock();
MockControl namespacec = newControl(INamespace.class);
INamespace namespace = (INamespace) namespacec.getMock();
MockControl frameworkc = newControl(INamespace.class);
INamespace framework = (INamespace) frameworkc.getMock();
Resource namespaceLocation = newResource("LibraryStandin.library");
namespace.containsComponentType("FrameworkComponent");
namespacec.setReturnValue(false);
train(log, logc, ResolverMessages.resolvingComponent("FrameworkComponent", namespace));
namespace.getSpecificationLocation();
namespacec.setReturnValue(namespaceLocation);
train(log, logc, ResolverMessages.checkingResource(namespaceLocation
.getRelativeResource("FrameworkComponent.jwc")));
namespace.isApplicationNamespace();
namespacec.setReturnValue(false);
ISpecificationSource source = newSource(framework);
framework.containsComponentType("FrameworkComponent");
frameworkc.setReturnValue(true);
framework.getComponentSpecification("FrameworkComponent");
frameworkc.setReturnValue(spec);
train(log, logc, ResolverMessages
.installingComponent("FrameworkComponent", namespace, spec));
namespace.installComponentSpecification("FrameworkComponent", spec);