@Test
public void shouldFailWhenUnknownResourceReference() {

  initWorkflow(workflowUsingResources(WORKFLOW_ID1, "unknown"));
  populateActiveStates(RunState.create(INSTANCE_1, State.QUEUED, time.get()));
  scheduler.tick();
  verify(stateManager).receiveIgnoreClosed(eq(Event.runError(INSTANCE_1,
      "Referenced resources not found: [unknown]")), anyLong());
}