@Test
    public void testGetAndCreateIfAbsent() {
        try {
            Connection conn = cm.getAndCreateIfAbsent(url);
            Assert.assertNotNull(conn);
        } catch (RemotingException e) {
            Assert.fail("should not reach here!");
        } catch (InterruptedException e) {
            Assert.fail("should not reach here!");
        }

    }
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