public String getUriScheme() {
        return isHttpEnableTls() ? "https" : "http";
    }
@Test
    public void testGetUriScheme() throws RepositoryException, ValidationException, IOException {
        final HttpConfiguration configWithoutTls = new HttpConfiguration();
        new JadConfig(new InMemoryRepository(ImmutableMap.of("http_enable_tls", "false")), configWithoutTls)
                .addConverterFactory(new GuavaConverterFactory())
                .process();
        assertThat(configWithoutTls.getUriScheme()).isEqualTo("http");

        final Map<String, String> properties = ImmutableMap.of(
                "http_bind_address", "127.0.0.1:9000",
                "http_enable_tls", "true",
                "http_tls_key_file", temporaryFolder.newFile("graylog.key").getAbsolutePath(),
                "http_tls_cert_file", temporaryFolder.newFile("graylog.crt").getAbsolutePath());
        final HttpConfiguration configWithTls = new HttpConfiguration();
        new JadConfig(new InMemoryRepository(properties), configWithTls)
                .addConverterFactory(new GuavaConverterFactory())
                .process();
        assertThat(configWithTls.getUriScheme()).isEqualTo("https");
    }