static ProviderInfo getProviderInfoByHost(ConsumerConfig consumerConfig, String host) {
        ConsumerBootstrap consumerBootStrap = consumerConfig.getConsumerBootstrap();
        AddressHolder addressHolder = consumerBootStrap.getCluster().getAddressHolder();

        List<ProviderGroup> providerGroups = addressHolder.getProviderGroups();

        for (ProviderGroup providerGroup : providerGroups) {
            for (ProviderInfo providerInfo : providerGroup.getProviderInfos()) {
                if (providerInfo.getHost().equals(host)) {
                    return providerInfo;
                }
            }
        }
        return null;
    }
@author <a href=mailto:leizhiyuan@gmail.com>leizhiyuan</a>
fault/fault-tolerance/src/test/java/com/alipay/sofa/rpc/client/aft/FaultBaseTest.java