@Test
void next() {

    var trigger = new DailyTrigger(of(10, 0));
    assertThat(trigger.next(date("2017-04-10T09:00:00"))).isEqualTo(date("2017-04-10T10:00:00"));
    assertThat(trigger.next(ZonedDateTime.parse("2017-04-10T09:00:00Z"))).isEqualTo("2017-04-10T10:00:00Z");
    assertThat(trigger.next(date("2017-04-10T10:00:00"))).isEqualTo(date("2017-04-11T10:00:00"));
    assertThat(trigger.next(date("2017-04-10T11:00:00"))).isEqualTo(date("2017-04-11T10:00:00"));
}