@Test
public void initialDelay() {

    ClientTestTaskDelegator taskWithoutInitialDelay = new ClientTestTaskDelegator();
    scheduler = new DockerTaskScheduler(3, false, Duration.ofSeconds(1));
    scheduler.scheduleClientTask(taskWithoutInitialDelay.task);
    waitMillis(200);
    assertThat(taskWithoutInitialDelay.isSuccessful()).isTrue();
    ClientTestTaskDelegator taskWithInitialDelay = new ClientTestTaskDelegator(Duration.ofSeconds(2),
            Duration.ofMillis(-1));
    scheduler.scheduleClientTask(taskWithInitialDelay.task);
    assertThat(Stopwatch.measure(() -> waitUntil(taskWithInitialDelay::isSuccessful)).toMillis()).
            isCloseTo(2000, offset(150L));
}