HourlyTrigger implements Trigger { @Override public String toString() { return format("hourly@{}:{}", minute, second); } HourlyTrigger(int minute, int second); @Override ZonedDateTime next(ZonedDateTime previous); @Override String toString();  }
@Test void description() { var trigger = new HourlyTrigger(2, 30); assertThat(trigger.toString()).isEqualTo("hourly@2:30"); }