PaxosRemotingUtils { public static ImmutableList<String> getClusterAddresses(TimeLockInstallConfiguration install) { return ImmutableList.copyOf(getClusterConfiguration(install).clusterMembers()); } private  PaxosRemotingUtils(); static int getQuorumSize(Collection<T> elements); static List<String> getRemoteServerPaths(TimeLockInstallConfiguration install); static ImmutableList<String> getClusterAddresses(TimeLockInstallConfiguration install); static List<String> getRemoteServerAddresses(TimeLockInstallConfiguration install); static ClusterConfiguration getClusterConfiguration(TimeLockInstallConfiguration install); static Optional<SslConfiguration> getSslConfigurationOptional(TimeLockInstallConfiguration install); static String addProtocol(TimeLockInstallConfiguration install, String address); static List<String> addProtocols(TimeLockInstallConfiguration install, List<String> addresses); static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address); static List<URL> convertAddressesToUrls(TimeLockInstallConfiguration install, List<String> addresses);  }
@Test public void canGetClusterAddresses() { assertThat(PaxosRemotingUtils.getClusterAddresses(SSL_TIMELOCK)) .isEqualTo(ImmutableList.of("foo:1", "bar:2", "baz:3")); }