    @Test
    public void configurationNames() {

        Map<String, String> entries = new HashMap<>();
        entries.put("firehose.sampleservice.uri", "http://sample-service:8080/sample-service/resources/metrics");
        entries.put("another.sampleservice.uri", "http://another:8080/another/resources/metrics");
        entries.put("firehose.another.uri", "http://another:8080/another/resources/metrics");
        List<String> configurationNames = EnvironmentVariables.configurationNames(entries.keySet());
        assertThat(configurationNames.size(), is(2));
        assertThat(configurationNames, hasItems("sampleservice", "another"));
    }