INamespace namespace = (INamespace) namespacec.getMock();
Resource namespaceLocation = newResource("LibraryStandin.library");
Resource specLocation = contextRoot.getRelativeResource("ContextRootComponent.jwc");
ISpecificationSource source = newSource(specLocation, spec);
namespace.containsComponentType("ContextRootComponent");
namespacec.setReturnValue(false);
train(log, logc, ResolverMessages.resolvingComponent("ContextRootComponent", namespace));