@Test
public void testViewModelSendsEffectsIntoLoop() {

  fakeLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME);
  underTest.dispatchEvent(new TestEvent("testable"));
  assertThat(recordedEvents.size(), equalTo(1));
  assertThat(recordedEvents.get(0).name, equalTo("testable"));
}