FixedRateTask implements Task { @Override public String trigger() { return "fixedRate@" + rate; } FixedRateTask(String name, Job job, Duration rate); @Override String name(); @Override Job job(); @Override String trigger();  }
@Test void trigger() { FixedRateTask task = new FixedRateTask(null, null, Duration.ofSeconds(30)); assertThat(task.trigger()).isEqualTo("fixedRate@PT30S"); }