@Override
    public Addresses loadAddresses(ClientConnectionProcessListenerRegistry listenerRunner) {
        List<String> configuredAddresses = networkConfig.getAddresses();

        if (configuredAddresses.isEmpty()) {
            configuredAddresses.add("127.0.0.1");
        }

        Addresses addresses = new Addresses();
        List<Address> allAddresses = new ArrayList<>();
        for (String address : configuredAddresses) {
            Addresses socketAddresses = AddressHelper.getSocketAddresses(address, listenerRunner);
            addresses.addAll(socketAddresses);
        }
        allAddresses.addAll(addresses.primary());
        allAddresses.addAll(addresses.secondary());
        listenerRunner.onPossibleAddressesCollected(allAddresses);
        return addresses;
    }
@Test
    public void whenBogusAddress() {
        ClientNetworkConfig config = new ClientNetworkConfig();
        config.addAddress(UUID.randomUUID().toString());
        DefaultAddressProvider provider = new DefaultAddressProvider(config, () -> false);
        Addresses addresses = provider.loadAddresses(createConnectionProcessListenerRunner());

        assertPrimaryEmpty(addresses);
        assertSecondaryEmpty(addresses);
    }