private void verifySuspendGroup(InOrder order, OrchestratorImpl orchestrator, NodeGroup nodeGroup, boolean probe)
            throws HostStateChangeDeniedException{
        ArgumentCaptor<OrchestratorContext> argument = ArgumentCaptor.forClass(OrchestratorContext.class);
        order.verify(orchestrator).suspendGroup(argument.capture(), eq(nodeGroup));
        assertEquals(probe, argument.getValue().isProbe());
    }
Test Orchestrator with a mock backend (the MockCurator)

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