@Override
    public boolean hasDesiredResources() {
        final Collection<? extends SlotInfo> freeSlots =
                declarativeSlotPool.getFreeSlotTracker().getFreeSlotsInformation();
        return hasDesiredResources(desiredResources, freeSlots);
    }
@Test
    void testHasEnoughResourcesReturnsTrueIfSatisfied() {
        final ResourceCounter resourceRequirement =
                ResourceCounter.withResource(ResourceProfile.UNKNOWN, 1);
        final Collection<TestingSlot> freeSlots =
                createSlotsForResourceRequirements(resourceRequirement);
        assertThat(AdaptiveScheduler.hasDesiredResources(resourceRequirement, freeSlots)).isTrue();
    }