@Test
    public void testRpcClientShutdown() throws InterruptedException {
        String connNumAddr = addr + "?_CONNECTIONNUM=8&_CONNECTIONWARMUP=true";
        try {
            client.getConnection(connNumAddr, 1000);
        } catch (RemotingException e) {
            logger.error("get connection exception!", e);
        }
        client.shutdown();
        Thread.sleep(1500);
        Assert.assertTrue(serverConnectProcessor.isConnected());
        Assert.assertEquals(8, serverConnectProcessor.getConnectTimes());
        Assert.assertTrue(serverDisConnectProcessor.isDisConnected());
        Assert.assertEquals(8, serverDisConnectProcessor.getDisConnectTimes());
    }
test server stop and client shutdown

@author xiaomin.cxm
@version $Id: ServerStopTest.java, v 0.1 May 9, 2016 4:12:51 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/resrelease/ServerClientStopTest.java