private IComponentSpecification createSimpleCompSpec(String componentName, Class<?> componentClass) throws NoSuchMethodError {
IComponentSpecification compSpec = createMock(IComponentSpecification.class);
expect(compSpec.getPublicId()).andReturn(null);
expect(compSpec.getComponentClassName()).andReturn(componentClass.getName());
expect(compSpec.getDescription()).andReturn(componentName);
Resource res = new ExternalResource("dummy", null);
expect(compSpec.getSpecificationLocation()).andReturn(res).anyTimes();
return compSpec;
}