@Override
    public void onNewResourcesAvailable() {
        checkDesiredOrSufficientResourcesAvailable();
    }
@Test
    void testNotifyNewResourcesAvailable() {
        ctx.setHasDesiredResources(() -> false); // initially, not enough resources
        WaitingForResources wfr =
                new WaitingForResources(ctx, LOG, Duration.ZERO, STABILIZATION_TIMEOUT);
        ctx.setHasDesiredResources(() -> true); // make resources available
        ctx.setExpectCreatingExecutionGraph();
        wfr.onNewResourcesAvailable(); // .. and notify
    }