@Test
public void shouldNotUpdateNextNaturalTriggerIfTriggerExecutionFails() throws Exception {

  setupWithNextNaturalTrigger(true, parse("2016-10-01T00:00:00Z"), WORKFLOW_DAILY);
  doThrow(new RuntimeException("trigger execution failure!"))
      .when(triggerListener).event(any(), any(), any(), any());
  triggerManager.tick();
  verify(triggerListener).event(WORKFLOW_DAILY, NATURAL_TRIGGER, parse("2016-10-01T00:00:00Z"),
      TriggerParameters.zero());
  verify(storage, never()).updateNextNaturalTrigger(any(WorkflowId.class), any(TriggerInstantSpec.class));
}