JobTriggerListener extends TriggerListenerSupport { @Override public void triggerMisfired(final Trigger trigger) { executionService.setMisfire(shardingService.getLocalHostShardingItems()); }  @Override String getName(); @Override void triggerMisfired(final Trigger trigger);  }
@Test public void assertTriggerMisfired() { when(shardingService.getLocalHostShardingItems()).thenReturn(Collections.singletonList(0)); jobTriggerListener.triggerMisfired(null); verify(shardingService).getLocalHostShardingItems(); verify(executionService).setMisfire(Collections.singletonList(0)); }