@Test
void validConfigs() throws IOException {

    final Path path = Files.createTempFile("robozonky-", ".cfg");
    try (InputStream s = getClass().getResourceAsStream("listeners/notifications-enabled.cfg")) {
        Files.write(path, s.readAllBytes());
    }
    ListenerServiceLoader.registerConfiguration(SESSION, path.toUri()
        .toURL());
    final ListenerService s = new NotificationListenerService();
    assertThat(s.findListeners(SESSION, RoboZonkyTestingEvent.class))
        .hasSize(1)
        .first()
        .extracting(Supplier::get)
        .extracting(Optional::isPresent)
        .isEqualTo(true);
}