@Test
    public void testFutureWait0() {
        server.registerUserProcessor(new SimpleServerUserProcessor());
        RequestBody req = new RequestBody(4, "hello world future");

        Object res = null;
        try {
            RpcResponseFuture future = client.invokeWithFuture(addr, req, 1000);
            res = future.get(0);
            Assert.fail("Should not reach here!");
        } catch (InvokeTimeoutException e) {
            Assert.assertNull(res);
        } catch (RemotingException e) {
            String errMsg = "RemotingException caught in testFutureWait0!";
            logger.error(errMsg, e);
            Assert.fail(errMsg);
        } catch (InterruptedException e) {
            String errMsg = "InterruptedException caught in testFutureWait0!";
            logger.error(errMsg, e);
            Assert.fail(errMsg);
        }
    }
exception test

@author xiaomin.cxm
@version $Id: ExceptionTest.java, v 0.1 Apr 6, 2016 9:41:53 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/exception/ExceptionTest.java