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