TriggerTask implements Task { @Override public String trigger() { return Strings.format("{}[{}]", trigger, zoneId); } TriggerTask(String name, Job job, Trigger trigger, ZoneId zoneId); @Override String name(); @Override Job job(); @Override String trigger();  }
@Test void trigger() { TriggerTask task = new TriggerTask(null, null, new DailyTrigger(LocalTime.NOON), ZoneId.of("America/New_York")); assertThat(task.trigger()).isEqualTo("daily@12:00[America/New_York]"); }