@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);
}