public void testGetComponentSpecification()
{
Resource libraryResource = newResource();
Resource specResource = newResource();
IComponentSpecification spec = newComponentSpec();
ISpecificationSource source = newSource();
AssetSource assetSource = newAssetSource();
Location l = newLocation();
trainResolveChildResource(assetSource, libraryResource, "Foo.jwc", l, specResource);
source.getComponentSpecification(specResource);
getControl(source).setReturnValue(spec);
replayControls();
NamespaceResources nr = new NamespaceResourcesImpl(source, assetSource);