@Test
void properEventsFired() {

    final RoboZonkyStartupNotifier rzsn = new RoboZonkyStartupNotifier(SESSION);
    final Optional<Consumer<ReturnCode>> result = rzsn.get();
    assertThat(result).isPresent();
    assertThat(this.getEventsRequested()).last()
        .isInstanceOf(RoboZonkyInitializedEvent.class);
    final ReturnCode r = ReturnCode.OK;
    result.get()
        .accept(r);
    assertThat(this.getEventsRequested()).last()
        .isInstanceOf(RoboZonkyEndingEvent.class);
}