@Override
    public void onNewResourcesAvailable() {
        checkDesiredOrSufficientResourcesAvailable();
    }
@Test
    void testSchedulingWithSufficientResourcesAndNoStabilizationTimeout() {
        Duration noStabilizationTimeout = Duration.ofMillis(0);
        WaitingForResources wfr =
                new WaitingForResources(ctx, LOG, Duration.ofSeconds(1000), noStabilizationTimeout);

        ctx.setHasDesiredResources(() -> false);
        ctx.setHasSufficientResources(() -> true);
        ctx.setExpectCreatingExecutionGraph();
        wfr.onNewResourcesAvailable();
    }