OutboundWire wire = new OutboundWireImpl();
Operation operation = contract.getOperations().get("hello");
wire.addInvocationChain(operation, createChain(operation));
wire.setServiceContract(contract);
JDKOutboundInvocationHandler handler = new JDKOutboundInvocationHandler(wire, new WorkContextImpl());
assertEquals("foo", handler.invoke(hello, new Object[]{"foo"}));
}
public void testErrorInvoke() throws Throwable {
OutboundWire wire = new OutboundWireImpl();
Operation operation = contract.getOperations().get("hello");