@Test
public void shouldSupportCreatingFactory() throws Exception {

  MobiusLoop.Factory<String, Integer, Boolean> factory = Mobius.loop(UPDATE, HANDLER);
  loop = factory.startFrom("resume");
  loop.dispatchEvent(97);
  await().atMost(Duration.ofSeconds(1)).until(() -> loop.getMostRecentModel(), is("resume97"));
}