@Test
    public void getAvailableClientTransport2() throws Exception {
        ConsumerConfig<HelloService> consumerConfig = new ConsumerConfig<HelloService>()
            .setInterfaceId(HelloService.class.getName())
            .setDirectUrl("bolt://127.0.0.1:22223,bolt://127.0.0.1:22224")
            .setConnectionHolder("all")
            .setRegister(false)
            .setLazy(true)
            .setTimeout(3000);
        HelloService helloService = consumerConfig.refer();
        ClientProxyInvoker invoker = (ClientProxyInvoker) ProxyFactory.getInvoker(helloService,
            consumerConfig.getProxy());
        Cluster cluster = invoker.getCluster();
        Assert.assertTrue(cluster.getConnectionHolder() instanceof AllConnectConnectionHolder);
        AllConnectConnectionHolder holder = (AllConnectConnectionHolder) cluster.getConnectionHolder();

        Assert.assertTrue(holder.isAvailableEmpty());
        Assert.assertNotNull(holder.getAvailableClientTransport(
            ProviderHelper.toProviderInfo("bolt://127.0.0.1:22223")));
        Assert.assertNotNull(holder.getAvailableClientTransport(
            ProviderHelper.toProviderInfo("bolt://127.0.0.1:22224")));
        consumerConfig.unRefer();
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/test/client/AllConnectConnectionHolderTest.java