EntryPoint epSystemBinding = MockFactory.createEPSystemBinding("TestServiceEP", ModuleScopeSystemComponent.class, "NoReference", component);
moduleContext.registerModelObject(epSystemBinding);
moduleContext.publish(new ModuleStart(this));
try {
moduleContext.locateService("TestServiceEP");
fail("Expected " + ServiceNotFoundException.class.getName());
} catch (ServiceNotFoundException e) {
// expected
}
moduleContext.publish(new ModuleStop(this));