@Test
    public void testRemoveConn() {
        Connection conn1 = getAConn();
        conn1.addPoolKey("hehe");
        Connection conn2 = getAConn();
        conn2.addPoolKey("hehe");
        cm.add(conn1);
        cm.add(conn2);
        Assert.assertEquals(2, cm.count(poolKey));
        cm.remove(conn1);
        Assert.assertEquals(1, cm.count(poolKey));
        cm.remove(conn2);
        Assert.assertEquals(0, cm.count(poolKey));
    }
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