@Test
    void synchronous_task_immediately_answered_when_not_leader() throws Exception {
        FleetControllerOptions.Builder builder = optionsWithZeroTransitionTime();
        builder.setCount(3);
        RemoteTaskFixture fixture = createFixtureWith(builder);

        fixture.loseLeadership();
        markAllNodesAsUp(ctrl.getOptions());

        MockTask task = fixture.scheduleVersionDependentTaskWithSideEffects();

        assertTrue(task.isInvoked());
        assertTrue(task.isCompleted());
    }
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