public int getResourceCount(ResourceProfile resourceProfile) {
        return resources.getOrDefault(resourceProfile, 0);
    }
@Test
    void testGetResourceCount() {
        final Map<ResourceProfile, Integer> resources = createResources();

        final ResourceCounter resourceCounter = ResourceCounter.withResources(resources);

        for (Map.Entry<ResourceProfile, Integer> resource : resources.entrySet()) {
            assertThat(resourceCounter.getResourceCount(resource.getKey()))
                    .isEqualTo(resource.getValue());
        }
    }