@Test
    public void appliations_list_returns_suspended_apps() throws Exception {
        // One suspended app
        orchestrator.suspend(app1);
        assertEquals(1, orchestrator.getAllSuspendedApplications().size());
        assertTrue(orchestrator.getAllSuspendedApplications().contains(app1));

        // Two suspended apps
        orchestrator.suspend(app2);
        assertEquals(2, orchestrator.getAllSuspendedApplications().size());
        assertTrue(orchestrator.getAllSuspendedApplications().contains(app1));
        assertTrue(orchestrator.getAllSuspendedApplications().contains(app2));

        // Back to one when resetting one app to no_remarks
        orchestrator.resume(app1);
        assertEquals(1, orchestrator.getAllSuspendedApplications().size());
        assertTrue(orchestrator.getAllSuspendedApplications().contains(app2));
    }
Test Orchestrator with a mock backend (the MockCurator)

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