@Test
public void shouldReadRunStateCounterForEachTick() {

  initWorkflow(workflowUsingResources(WORKFLOW_ID1));
  populateActiveStates(RunState.create(
      INSTANCE_1, State.QUEUED, StateData.zero(), time.get(), 15L));
  scheduler.tick();
  verify(stateManager).receiveIgnoreClosed(any(Event.class), eq(15L));
  populateActiveStates(RunState.create(
      INSTANCE_1, State.QUEUED, StateData.zero(), time.get(), 23L));
  scheduler.tick();
  verify(stateManager).receiveIgnoreClosed(any(Event.class), eq(23L));
}