@Override
    public void onNewResourcesAvailable() {
        checkDesiredOrSufficientResourcesAvailable();
    }
@Test
    void testNotEnoughResources() {
        ctx.setHasDesiredResources(() -> false);
        WaitingForResources wfr =
                new WaitingForResources(ctx, LOG, Duration.ZERO, STABILIZATION_TIMEOUT);

        // we expect no state transition.
        wfr.onNewResourcesAvailable();
    }