@Test
  public void slowReceiverShouldThrowExceptionWhenEnabledClusterTLS() throws Exception {
    Properties props = new Properties();
    props.setProperty(SSL_ENABLED_COMPONENTS, "cluster");
    props.setProperty(ASYNC_DISTRIBUTION_TIMEOUT, "1");

    Throwable thrown = catchThrowable(() -> new DistributionConfigImpl(props));
    assertThat(thrown).isInstanceOf(IllegalArgumentException.class).hasMessageContaining(
        "async-distribution-timeout greater than 0 is not allowed with cluster TLS/SSL.");
  }
Test that DistributionConfigImpl handles SSL options correctly.
geode-core/src/integrationTest/java/org/apache/geode/internal/SSLConfigJUnitTest.java