InboundInvocationChain chain = new InboundInvocationChainImpl(operation);
MockSyncInterceptor interceptor = new MockSyncInterceptor();
chain.addInterceptor(interceptor);
chain.addInterceptor(new InvokerInterceptor());
chain.setTargetInvoker(invoker);
chain.prepare();
chains.put(echo, chain);
WorkContext workContext = EasyMock.createNiceMock(WorkContext.class);
EasyMock.replay(workContext);
JDKInboundInvocationHandler handler = new JDKInboundInvocationHandler(chains, workContext);
assertEquals("foo", handler.invoke(echo, new String[]{"foo"}));