@Test
void next() {

    assertThatThrownBy(() -> scheduler.next(previous -> null, ZonedDateTime.now()))
            .hasMessageContaining("must be after previous");
    assertThat(scheduler.next(previous -> previous.plusHours(1), ZonedDateTime.now())).isNotNull();
}