@Test
public void test_stop_all() {

    TaskManager.MonitorableFutureTask<String> t1 = taskManager.startTask(() -> {
        Thread.sleep(10000);
        return "ok";
    });
    TaskManager.MonitorableFutureTask<String> t2 = taskManager.startTask(() -> {
        Thread.sleep(10000);
        return "ok";
    });
    put("/api/task/stopAll").should().respond(200).
            contain(t1.toString() + "\":true").
            contain(t2.toString() + "\":true");
    assertThat(taskManager.getTask(t1.toString()).isCancelled()).isTrue();
    assertThat(taskManager.getTask(t2.toString()).isCancelled()).isTrue();
}