@Parameters(source = State.class)
@Test
public void shouldTimeoutActiveState(State state) {

  assumeFalse(state.isTerminal());
  setUpWithTimeoutSeconds(5);
  var runState = RunState.create(WORKFLOW_INSTANCE, state, now, counter);
  now = now.plus(5, ChronoUnit.SECONDS);
  timeoutHandler.transitionInto(runState, eventRouter);
  verify(eventRouter).receiveIgnoreClosed(Event.timeout(WORKFLOW_INSTANCE), counter);
}