for (InboundInvocationChain chain : inboundWire.getInvocationChains().values()) {
chain.setTargetInvoker(composite.createTargetInvoker("foo", chain.getOperation()));
}
composite.register(service);
TestBean serviceInstance = (TestBean) composite.getService("fooService").getServiceInstance();
assertEquals("bar", serviceInstance.echo("bar"));
}
private AbstractApplicationContext createSpringContext() {
StaticApplicationContext beanFactory = new StaticApplicationContext();