PaxosRemotingUtils { public static Optional<SslConfiguration> getSslConfigurationOptional(TimeLockInstallConfiguration install) { return getClusterConfiguration(install).cluster().security(); } 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 canGetSslConfiguration() { assertThat(PaxosRemotingUtils.getSslConfigurationOptional(SSL_TIMELOCK)) .isEqualTo(Optional.of(SSL_CONFIGURATION)); assertThat(PaxosRemotingUtils.getSslConfigurationOptional(NO_SSL_TIMELOCK)).isEqualTo(Optional.empty()); }