@Override
    public boolean hasDesiredResources() {
        final Collection<? extends SlotInfo> freeSlots =
                declarativeSlotPool.getFreeSlotTracker().getFreeSlotsInformation();
        return hasDesiredResources(desiredResources, freeSlots);
    }
@Test
    void testHasEnoughResourcesUsesUnmatchedSlotsAsUnknown() {
        final int numRequiredSlots = 1;
        final ResourceCounter requiredResources =
                ResourceCounter.withResource(ResourceProfile.UNKNOWN, numRequiredSlots);
        final ResourceCounter providedResources =
                ResourceCounter.withResource(
                        ResourceProfile.newBuilder().setCpuCores(1).build(), numRequiredSlots);

        final Collection<TestingSlot> freeSlots =
                createSlotsForResourceRequirements(providedResources);

        assertThat(AdaptiveScheduler.hasDesiredResources(requiredResources, freeSlots)).isTrue();
    }