public void testCheckedException() throws Exception {
OutboundWire wire = new OutboundWireImpl();
ServiceContract<?> contract = registry.introspect(TestBean.class);
wire.setServiceContract(contract);
Operation operation = contract.getOperations().get("checkedException");
wire.addInvocationChain(operation, createChain(checkedMethod, operation));
JDKOutboundInvocationHandler handler = new JDKOutboundInvocationHandler(wire, new WorkContextImpl());
try {
TestBean proxy = (TestBean) Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[]{TestBean.class}, handler);