@Test
public void testMetrics_sendMessageToTwoRecipients() {

    setNewMetrics();
    try {
        boolean isSent = confirmationServiceImpl.sendMessage(mailMessageWithTwoRecipientsMock);
        assertTrue("last sent message should be successful", isSent);
        double successRate = getSuccessRate();
        assertEquals(0.5, successRate, 0);
        assertEquals(2, getAllSent());
        assertEquals(1, getSentFailed());
    } catch (InvalidAddressException e) {
        // no need to show the exception
    }
}