runtime.registerModelObject(moduleComponent);
CompositeContextImpl moduleContext = (CompositeContextImpl) runtime.getContext("test.module");
Assert.assertNotNull(moduleContext);
ExternalService es = MockFactory.createESSystemBinding("TestService2ES", "tuscany.system/TestService2EP");
moduleContext.registerModelObject(es);
moduleContext.publish(new ModuleStart(this));
Assert.assertNotNull(moduleContext.getContext("TestService2ES").getInstance(null));
moduleContext.publish(new ModuleStop(this));
system.publish(new ModuleStop(this));
}