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