@Test
    public void testCheckConnection() throws InterruptedException {
        Connection conn = null;
        try {
            conn = client.getConnection(addr, 3000);
        } catch (RemotingException e) {
            Assert.fail("should not reach here");
        }
        Assert.assertTrue(client.checkConnection(addr));
        conn.close();
        Thread.sleep(100);
        Assert.assertFalse(client.checkConnection(addr));
    }
@author tsui
@version $Id: ClientConnectionTest.java, v 0.1 2017-09-13 14:20 tsui Exp $
src/test/java/com/alipay/remoting/rpc/client/ClientConnectionTest.java