CompositeContext child = (CompositeContext) parent.getContext("test.child");
Component component = factory.createSystemComponent("TestService1", ModuleScopeSystemComponent.class, ModuleScopeSystemComponentImpl.class, Scope.MODULE);
parent.registerModelObject(component);
EntryPoint ep = MockFactory.createEPSystemBinding("TestService1EP", ModuleScopeSystemComponent.class, "TestService1", component);
parent.registerModelObject(ep);
parent.publish(new ModuleStart(this));
child.publish(new ModuleStart(this));
Assert.assertNotNull(parent.getContext("TestService1EP").getInstance(null));
try {
((ModuleContext) child).locateService("TestService1EP");
fail("Expexcted " + ServiceNotFoundException.class.getName());
} catch (ServiceNotFoundException e) {