@Test
public void shouldNotSendMailForTransactionAlert() throws Exception {

    // given
    setupForTransaction(999999);
    AlertingService alertingService = new AlertingService(configRepository,
            incidentRepository, aggregateRepository, gaugeValueRepository, traceRepository,
            rollupLevelService, mailService, httpClient, newLockSet(),
            newLockSet(),
            Clock.systemClock());
    // when
    alertingService.checkMetricAlert("", "", "", TRANSACTION_X_PERCENTILE_ALERT_CONFIG,
            TRANSACTION_X_PERCENTILE_ALERT_CONFIG.getCondition().getMetricCondition(), 120000);
    // then
    assertThat(mailService.getMessage()).isNull();
}