@Test
    public void testFuture() {
        RequestBody b4 = new RequestBody(4, "Hello world!");
        Object obj = null;
        try {
            RpcResponseFuture future = client.invokeWithFuture(addr, b4, 1000);
            obj = future.get(1500);
            Assert.fail("Should not reach here!");
        } catch (InvokeServerBusyException e) {
            Assert.assertNull(obj);
        } catch (RemotingException e) {
            logger.error(
                "Other RemotingException but InvokeServerBusyException occurred in future", e);
            Assert.fail("Should not reach here!");
        } catch (InterruptedException e) {
            logger.error("InterruptedException in future", e);
            Assert.fail("Should not reach here!");
        }

    }
@author jiangping
@version $Id: ServerBusyTest.java, v 0.1 2015-10-20 PM2:48:57 tao Exp $
src/test/java/com/alipay/remoting/rpc/exception/ServerBusyTest.java