@Test
void spamProtectionAvailable() throws Exception {

    final ConfigStorage cs = ConfigStorage
        .create(getClass().getResourceAsStream("notifications-enabled-spamless.cfg"));
    final AbstractTargetHandler p = getHandler(cs);
    final TestingEmailingListener l = new TestingEmailingListener(p);
    l.handle(EVENT, SESSION);
    verify(p, times(1)).send(notNull(), notNull(), notNull(), notNull());
    l.handle(EVENT, SESSION);
    // e-mail not re-sent, finisher not called again
    verify(p, times(1)).send(notNull(), notNull(), notNull(), notNull());
}