@Test
public void shouldUpdateExistingWorkflowAndNotUpdateNextNaturalTrigger()
    throws IOException, WorkflowInitializationException {

  when(transaction.workflow(HOURLY_WORKFLOW.id())).thenReturn(Optional.of(HOURLY_WORKFLOW));
  when(transaction.store(HOURLY_WORKFLOW)).thenReturn(HOURLY_WORKFLOW.id());
  workflowInitializer.store(HOURLY_WORKFLOW, PASS);
  verify(transaction).store(HOURLY_WORKFLOW);
  verify(transaction, never()).updateNextNaturalTrigger(any(), any());
  verify(transaction, never()).storeWorkflowWithNextNaturalTrigger(any(), any());
}