@Test
public void noDaemonThreadByDefault() {

    scheduler = new DockerTaskScheduler(3, false, Duration.ofSeconds(2));
    InstanceTestTaskDelegator task = new InstanceTestTaskDelegator(instance1);
    task.fixture = () -> assertThat(Thread.currentThread().isDaemon()).isFalse();
    scheduler.scheduleInstanceTask(task.task);
    waitUntil(() -> task.executions.size() == 1 && task.executions.get(0).isSuccessful());
}