@Test
public void shouldHaltIfMissingWorkflow() throws Exception {

  var workflowInstance = WorkflowInstance.create(WorkflowId.create("c", "e"), "2016-03-14T15");
  var runState = RunState.create(workflowInstance, PREPARE, NOW, COUNTER);
  when(storage.workflowWithState(any())).thenReturn(Optional.empty());
  toTest.transitionInto(runState, eventRouter);
  verify(eventRouter).receiveIgnoreClosed(Event.halt(workflowInstance), COUNTER);
}