boolean memberInternalAddressAsDefinedInClientConfig(Collection<Member> members) {
        List<String> addresses = config.getAddresses();
        List<String> resolvedHosts = addresses.stream().map(s -> {
            try {
                return InetAddress.getByName(AddressUtil.getAddressHolder(s, -1).getAddress()).getHostAddress();
            } catch (UnknownHostException e) {
                return null;
            }
        }).filter(Objects::nonNull).collect(Collectors.toList());
        return members.stream()
                .map(memberInfo -> {
                    try {
                        return memberInfo.getAddress().getInetAddress().getHostAddress();
                    } catch (UnknownHostException e) {
                        return null;
                    }
                }).anyMatch(resolvedHosts::contains);
    }
@Test
    public void memberInternalAddressAsDefinedInClientConfig() {
        // given
        config.getNetworkConfig().addAddress("127.0.0.1");
        TranslateToPublicAddressProvider translateProvider = createTranslateProvider();

        // when
        translateProvider.init(new InitialMembershipEvent(mock(Cluster.class),
                new HashSet<>(asList(member("192.168.0.1"), member("127.0.0.1")))));
        boolean result = translateProvider.getAsBoolean();

        // then
        assertFalse(result);
    }