MonthlyTrigger implements Trigger { @Override public String toString() { return format("monthly@{}/{}", dayOfMonth, time); } MonthlyTrigger(int dayOfMonth, LocalTime time); @Override ZonedDateTime next(ZonedDateTime previous); @Override String toString();  }
@Test void description() { MonthlyTrigger trigger = new MonthlyTrigger(5, LocalTime.of(1, 0)); assertThat(trigger.toString()).isEqualTo("monthly@5/01:00"); }