public ClientAuth getClientAuth() {

    String clientAuth = getString(SSL_CLIENT_AUTHENTICATION_CONFIG);
    if (originals().containsKey(SSL_CLIENT_AUTH_CONFIG)) {
      if (originals().containsKey(SSL_CLIENT_AUTHENTICATION_CONFIG)) {
        log.warn(
            "The {} configuration is deprecated. Since a value has been supplied for the {} "
                + "configuration, that will be used instead",
            SSL_CLIENT_AUTH_CONFIG,
            SSL_CLIENT_AUTHENTICATION_CONFIG
        );
      } else {
        log.warn(
            "The configuration {} is deprecated and should be replaced with {}",
            SSL_CLIENT_AUTH_CONFIG,
            SSL_CLIENT_AUTHENTICATION_CONFIG
        );
        clientAuth = getBoolean(SSL_CLIENT_AUTH_CONFIG)
            ? SSL_CLIENT_AUTHENTICATION_REQUIRED
            : SSL_CLIENT_AUTHENTICATION_NONE;
      }
    }
    return getClientAuth(clientAuth);
  }
@Test
  public void shouldUseClientAuthenticationIfClientAuthProvidedNone() {
    // Given:
    final KsqlRestConfig config = new KsqlRestConfig(ImmutableMap.<String, Object>builder()
        .put(KsqlRestConfig.SSL_CLIENT_AUTH_CONFIG, true)
        .put(KsqlRestConfig.SSL_CLIENT_AUTHENTICATION_CONFIG,
            KsqlRestConfig.SSL_CLIENT_AUTHENTICATION_NONE)
        .build());

    // When:
    final ClientAuth clientAuth = config.getClientAuth();

    // Then:
    assertThat(clientAuth, is(ClientAuth.NONE));
  }