@Test
void triggerNow() throws Exception {

    scheduler.addFixedRateTask("hourly-job", new TestJob(), Duration.ofHours(1));
    scheduler.triggerNow("hourly-job");
    @SuppressWarnings("unchecked")
    ArgumentCaptor<Callable<?>> task = ArgumentCaptor.forClass(Callable.class);
    verify(jobExecutor).submit(task.capture());
    var actionLog = new ActionLog(null, null);
    when(logManager.begin(anyString(), isNull())).thenReturn(actionLog);
    task.getValue().call();
    assertThat(actionLog.trace).isTrue();
    assertThat(actionLog.context).containsKeys("trigger", "job", "job_class", "scheduled_time");
}