@Test
public void shouldHaltIfDisabledAndNaturallyTriggered() throws Exception {

  var workflow = Workflow.create("id", workflowConfiguration("--date", "{}", "--bar"));
  var workflowState = WorkflowState.builder().enabled(false).build();
  var workflowWithState = WorkflowWithState.create(workflow, workflowState);
  var workflowInstance = WorkflowInstance.create(workflow.id(), "2016-03-14T15");
  var runState = RunState.create(workflowInstance,
      PREPARE,
      StateData.newBuilder().trigger(Trigger.natural()).build(),
      NOW,
      COUNTER);
  when(storage.workflowWithState(workflow.id())).thenReturn(Optional.of(workflowWithState));
  toTest.transitionInto(runState, eventRouter);
  verify(eventRouter).receiveIgnoreClosed(Event.halt(workflowInstance), COUNTER);
}