public boolean isHttpEncryptionEnabled() {
    return httpEncryptionEnabled;
  }
@Test
  public void isHttpEncryptionEnabled_shouldReturnCorrectValue() throws IOException {
    File sqHomeDir = temp.newFolder();
    Props props = new Props(new Properties());
    props.set(PATH_DATA.getKey(), temp.newFolder().getAbsolutePath());
    props.set(PATH_HOME.getKey(), temp.newFolder().getAbsolutePath());
    props.set(PATH_TEMP.getKey(), sqHomeDir.getAbsolutePath());
    props.set(PATH_LOGS.getKey(), temp.newFolder().getAbsolutePath());
    props.set(CLUSTER_ENABLED.getKey(), "true");
    props.set(CLUSTER_SEARCH_PASSWORD.getKey(), "password");
    props.set(CLUSTER_ES_HTTP_KEYSTORE.getKey(), sqHomeDir.getAbsolutePath());

    EsInstallation underTest = new EsInstallation(props);
    assertThat(underTest.isHttpEncryptionEnabled()).isTrue();

    props.set(CLUSTER_ENABLED.getKey(), "false");
    props.set(CLUSTER_ES_HTTP_KEYSTORE.getKey(), sqHomeDir.getAbsolutePath());

    underTest = new EsInstallation(props);
    assertThat(underTest.isHttpEncryptionEnabled()).isFalse();

    props.set(CLUSTER_ENABLED.getKey(), "true");
    props.rawProperties().remove(CLUSTER_ES_HTTP_KEYSTORE.getKey());

    underTest = new EsInstallation(props);
    assertThat(underTest.isHttpEncryptionEnabled()).isFalse();
  }