@Test
    public void testAddWconnithPoolKey_multiPoolKey() throws InterruptedException {
        Connection conn = getAConn();
        cm.add(conn, poolKey);
        cm.add(conn, "GROUP1");
        cm.add(conn, "GROUP2");
        Assert.assertEquals(1, cm.count(poolKey));
        Assert.assertEquals(1, cm.count("GROUP1"));
        Assert.assertEquals(1, cm.count("GROUP2"));

        cm.remove(conn, poolKey);
        Assert.assertTrue(conn.isFine());
        Assert.assertTrue(cm.get(poolKey) == null);
        Assert.assertTrue(cm.get("GROUP1").isFine());
        Assert.assertTrue(cm.get("GROUP2").isFine());

        cm.remove(conn, "GROUP1");
        cm.remove(conn, "GROUP2");
        Thread.sleep(1000);
        Assert.assertFalse(conn.isFine());
        Assert.assertTrue(cm.get(poolKey) == null);
        Assert.assertTrue(cm.get("GROUP1") == null);
        Assert.assertTrue(cm.get("GROUP2") == null);
    }
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