public Set<ResourceProfile> getResources() {
        return resources.keySet();
    }
@Test
    void testGetResources() {
        final Map<ResourceProfile, Integer> resources = createResources();
        final ResourceCounter resourceCounter = ResourceCounter.withResources(resources);

        assertThat(resourceCounter.getResources())
                .containsExactlyInAnyOrderElementsOf(resources.keySet());
    }