@Test
    public void testSetNodeState() throws OrchestrationException {
        assertEquals(HostStatus.NO_REMARKS, orchestrator.getNodeStatus(app1_host1));
        orchestrator.setNodeStatus(app1_host1, HostStatus.ALLOWED_TO_BE_DOWN);
        assertEquals(HostStatus.ALLOWED_TO_BE_DOWN, orchestrator.getNodeStatus(app1_host1));
        orchestrator.setNodeStatus(app1_host1, HostStatus.NO_REMARKS);
        assertEquals(HostStatus.NO_REMARKS, orchestrator.getNodeStatus(app1_host1));
    }
Test Orchestrator with a mock backend (the MockCurator)

@author smorgrav
orchestrator/src/test/java/com/yahoo/vespa/orchestrator/OrchestratorImplTest.java