@Test
public void shouldNotUpdateNextNaturalTriggerIfTriggerListenerThrows() throws Exception {

  setupWithNextNaturalTrigger(true, parse("2016-10-01T00:00:00Z"), WORKFLOW_DAILY);
  doThrow(new RuntimeException()).when(triggerListener).event(any(), any(), any(), any());
  triggerManager.tick();
  verify(storage, never()).updateNextNaturalTrigger(any(), any());
}