/**
* Creates a test system module with a module-scoped component and entry point
*/
public static Module createSystemModule() throws ConfigurationLoadException {
Module module = systemFactory.createSystemModule();
module.setName("system.module");
// create test component
Component component = systemFactory.createSystemComponent("TestService1", ModuleScopeSystemComponent.class,
ModuleScopeSystemComponentImpl.class, Scope.MODULE);
component.getImplementation().setComponentType(getIntrospector().introspect(ModuleScopeSystemComponent.class));
module.getComponents().add(component);
// create the entry point
EntryPoint ep = createEPSystemBinding("TestService1EP", ModuleScopeSystemComponent.class, "target", component);
module.getEntryPoints().add(ep);
module.initialize(assemblyContext);
module.setImplementationClass(SystemCompositeContextImpl.class);
module.setComponentType(getComponentType());
return module;
}