@Test
    void task_not_completed_within_deadline_is_failed_with_deadline_exceeded_error() throws Exception {
        FleetControllerOptions.Builder builder = defaultOptions();
        builder.setMaxDeferredTaskVersionWaitTime(Duration.ofSeconds(60));
        RemoteTaskFixture fixture = createFixtureWith(builder);

        MockTask task = fixture.scheduleVersionDependentTaskWithSideEffects();
        communicator.setShouldDeferDistributorClusterStateAcks(true);
        fixture.processScheduledTask();

        assertTrue(task.isInvoked());
        assertFalse(task.isCompleted());
        assertFalse(task.isDeadlineExceeded());

        timer.advanceTime(59_000);
        ctrl.tick();
        assertFalse(task.isCompleted());
        assertFalse(task.isDeadlineExceeded());

        timer.advanceTime(1_001);
        ctrl.tick();
        assertTrue(task.isCompleted());
        assertTrue(task.isDeadlineExceeded());
    }
Class for testing states of all nodes. Will fail in constructor with
debug message on non-expected results.
clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/StateChangeTest.java