@Test
public void beforeMatchFired() {

    CoverageAgendaListener coverageAgendaListener = new CoverageAgendaListener();
    assertTrue(coverageAgendaListener.getRuleExecuted().isEmpty());
    assertTrue(coverageAgendaListener.getAuditsMessages().isEmpty());
    BeforeMatchFiredEvent beforeMatchFiredEvent = createBeforeMatchFiredEventMock(RULE_NAME);
    coverageAgendaListener.beforeMatchFired(beforeMatchFiredEvent);
    Map<String, Integer> ruleExecuted = coverageAgendaListener.getRuleExecuted();
    assertEquals(1, ruleExecuted.size());
    assertEquals((Integer) 1, ruleExecuted.get(RULE_NAME));
    List<String> auditMessages = coverageAgendaListener.getAuditsMessages();
    assertEquals(1, auditMessages.size());
    assertEquals(RULE_NAME, auditMessages.get(0));
}