@Override
    public Collection<ResourceRequirement> getResourceRequirements() {
        final Collection<ResourceRequirement> currentResourceRequirements = new ArrayList<>();

        for (Map.Entry<ResourceProfile, Integer> resourceRequirement :
                totalResourceRequirements.getResourcesWithCount()) {
            currentResourceRequirements.add(
                    ResourceRequirement.create(
                            resourceRequirement.getKey(), resourceRequirement.getValue()));
        }

        return currentResourceRequirements;
    }
@TestTemplate
    void testGetResourceRequirements() {
        final DefaultDeclarativeSlotPool slotPool = createDefaultDeclarativeSlotPool();

        assertThat(slotPool.getResourceRequirements()).isEmpty();

        final ResourceCounter resourceRequirements = createResourceRequirements();

        slotPool.increaseResourceRequirementsBy(resourceRequirements);

        slotPool.tryWaitSlotRequestIsDone();

        assertThat(slotPool.getResourceRequirements())
                .isEqualTo(toResourceRequirements(resourceRequirements));
    }