@Test
    public void testGetAndCheckConnection() {
        final Url addr = new Url(ip, port);

        try {
            this.addressParser.initUrlArgs(addr);
            Connection conn = cm.getAndCreateIfAbsent(addr);
            Assert.assertTrue(conn.isFine());
        } catch (RemotingException e) {
            Assert.fail("RemotingException!");
        } catch (InterruptedException e) {
            Assert.fail("InterruptedException!");
        }
    }
Rpc connection manager test

@author xiaomin.cxm
@version $Id: RpcConnectionManagerTest.java, v 0.1 Mar 9, 2016 8:09:44 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/inner/connection/RpcConnectionManagerTest.java