public void testInterceptorInvoke() throws Throwable {
JavaInterfaceProcessorRegistry registry = new JavaInterfaceProcessorRegistryImpl();
ServiceContract<?> contract = registry.introspect(SimpleTarget.class);
Operation<?> operation = contract.getOperations().get("echo");
MockStaticInvoker invoker = new MockStaticInvoker(echo, new SimpleTargetImpl());
OutboundInvocationChain chain = new OutboundInvocationChainImpl(operation);
MockSyncInterceptor interceptor = new MockSyncInterceptor();
chain.addInterceptor(interceptor);
chain.setTargetInterceptor(new InvokerInterceptor());
chain.setTargetInvoker(invoker);