@Override
    public void onNewResourcesAvailable() {
        checkDesiredOrSufficientResourcesAvailable();
    }
@Test
    void testNoSchedulingIfStabilizationTimeoutIsConfigured() {
        Duration stabilizationTimeout = Duration.ofMillis(50000);

        WaitingForResources wfr =
                new WaitingForResources(ctx, LOG, Duration.ofSeconds(1000), stabilizationTimeout);

        ctx.setHasDesiredResources(() -> false);
        ctx.setHasSufficientResources(() -> true);
        wfr.onNewResourcesAvailable();
        // we are not triggering the scheduled tasks, to simulate a long stabilization timeout

        assertThat(ctx.hasStateTransition()).isFalse();
    }