JDKInboundInvocationHandler handler = new JDKInboundInvocationHandler(chains, workContext);
assertEquals("foo", handler.invoke(echo, new Object[]{"foo"}));
}
public void testToString() {
WorkContext workContext = EasyMock.createNiceMock(WorkContext.class);
EasyMock.replay(workContext);
JDKInboundInvocationHandler handler =
new JDKInboundInvocationHandler(new HashMap<Method, InboundInvocationChain>(), workContext);
Foo foo = (Foo) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Foo.class}, handler);
assertNotNull(foo.toString());