@Test
public void testMetrics_sendMessage_invalidAddress() {

    setNewMetrics();
    try {
        confirmationServiceImpl.sendMessage(mailMessageMock_nok);
    } catch (InvalidAddressException e) {
        // no need to show the exception
        double successRate = getSuccessRate();
        assertEquals(0.0, successRate, 0);
        assertEquals(1, getAllSent());
        assertEquals(1, getSentFailed());
    }
}