@Test
    public void getAddressHolder() throws Exception {
        ConsumerConfig consumerConfig = new ConsumerConfig().setBootstrap("test").setAddressHolder("test");
        ConsumerBootstrap bootstrap = Bootstraps.from(consumerConfig);

        Assert.assertEquals(AddressHolderFactory.getAddressHolder(bootstrap).getClass(), TestAddressHolder.class);

        boolean error = false;
        try {
            consumerConfig.setAddressHolder("xasdsa");
            AddressHolderFactory.getAddressHolder(bootstrap);
        } catch (Exception e) {
            error = true;
        }
        Assert.assertTrue(error);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/client/AddressHolderFactoryTest.java