@Test
public void shouldNotUpdateNextNaturalTriggerIfOtherException() 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(
      WORKFLOW_DAILY.id(),
      TriggerInstantSpec.create(parse("2016-10-02T00:00:00Z"), parse("2016-10-03T00:00:00Z")));
}