DailyTrigger implements Trigger { @Override public String toString() { return "daily@" + time; } DailyTrigger(LocalTime time); @Override ZonedDateTime next(ZonedDateTime previous); @Override String toString();  }
@Test void description() { var trigger = new DailyTrigger(of(2, 30)); assertThat(trigger.toString()).isEqualTo("daily@02:30"); }