@Test
public void failedRepeatableTaskMustBeRescheduled() {

    ClientTestTaskDelegator failingRepeatableTask = new ClientTestTaskDelegator(Duration.ZERO, Duration
            .ofMillis(400));
    failingRepeatableTask.fixture = () -> { throw new RuntimeException("Simulated failure"); };
    scheduler = new DockerTaskScheduler(3, false, Duration.ofSeconds(1));
    scheduler.scheduleClientTask(failingRepeatableTask.task);
    waitSec(1);
    assertThat(failingRepeatableTask.executions).hasSize(3);
    failingRepeatableTask.executions.
            forEach(execution -> assertThat(execution).matches(Execution::isFailed));
}