ExternalService es = MockFactory.createESSystemBinding("TestServiceES", "tuscany.system/TestService1EP");
moduleContext.registerModelObject(es);
// start the modules and test inter-module system wires
systemContext.publish(new ModuleStart(this));
moduleContext.publish(new ModuleStart(this));
Assert.assertNotNull(systemContext.getContext("TestService1EP").getInstance(null));
GenericSystemComponent testService = (GenericSystemComponent) systemContext.getContext("TestService1").getInstance(null);
Assert.assertNotNull(testService);
GenericSystemComponent testES = (GenericSystemComponent) moduleContext.getContext("TestServiceES").getInstance(null);