MockSyncInterceptor mockInterceptor = new MockSyncInterceptor();
MockInterceptorBuilder interceptorBuilder = new MockInterceptorBuilder(mockInterceptor, false);
registry.registerTargetBuilder(interceptorBuilder);
runtime.getRootContext().registerModelObject(MockFactory.createCompositeComponent("test.module"));
CompositeContext child = (CompositeContext) runtime.getRootContext().getContext("test.module");
child.registerModelObject(MockFactory.createModuleWithEntryPointToExternalService());
child.publish(new ModuleStart(this));
Object id = new Object();
child.publish(new RequestStart(this, id));
HelloWorldService service1 = (HelloWorldService) child.getContext("target").getInstance(null);
Assert.assertEquals("foo", service1.hello("foo"));