@Test
public void shouldPermitUsingCustomEffectRunner() throws Exception {

  TestableWorkRunner runner = new TestableWorkRunner();
  loop = Mobius.loop(UPDATE, HANDLER).effectRunner(() -> runner).startFrom(MY_MODEL);
  loop.dispatchEvent(3);
  await().atMost(Duration.ofSeconds(1)).until(() -> runner.runCounter.get() == 1);
}