Log log = (Log) logc.getMock();
Resource contextRoot = newResource("context/");
MockControl namespacec = newControl(INamespace.class);
INamespace namespace = (INamespace) namespacec.getMock();
Resource namespaceLocation = newResource("LibraryStandin.library");
Resource specLocation = contextRoot.getRelativeResource("WEB-INF/myapp/MyAppComponent.jwc");
ISpecificationSource source = newSource(specLocation, spec);
namespace.containsComponentType("MyAppComponent");
namespacec.setReturnValue(false);
train(log, logc, ResolverMessages.resolvingComponent("MyAppComponent", namespace));
namespace.getSpecificationLocation();
namespacec.setReturnValue(namespaceLocation);
train(log, logc, ResolverMessages.checkingResource(namespaceLocation
.getRelativeResource("MyAppComponent.jwc")));
namespace.isApplicationNamespace();
namespacec.setReturnValue(true);
train(log, logc, ResolverMessages.checkingResource(specLocation));
train(log, logc, ResolverMessages.installingComponent("MyAppComponent", namespace, spec));
namespace.installComponentSpecification("MyAppComponent", spec);
replayControls();
ComponentSpecificationResolverImpl resolver = new ComponentSpecificationResolverImpl();
resolver.setLog(log);