@Test
public void testNotifyStatistics_send_failedForMail() throws Exception {

    doNothing().when(dummyChannelMock).send(any(Subscriber.class), anyListOf(NotificationEventTO.class));
    doThrow(new MailSendException("")).when(mailChannelMock).send(any(Subscriber.class), anyListOf(NotificationEventTO.class));
    NotifyStatistics statistics = channelChainTestObject.send(subscriber, eventTOs);
    assertEquals(1, statistics.getFailedCounter());
    assertEquals(1, statistics.getDeliveredCounter());
    assertEquals(2, statistics.getTotalCounter()); // 2 since 2 channels
}