@Test
public void testMetrics_sendMessage_OneMessage() {

    setNewMetrics();
    try {
        boolean isSent = confirmationServiceImpl.sendMessage(mailMessageMock);
        assertTrue("send message should be successful", isSent);
        double successRate = getSuccessRate();
        assertEquals(1.0, successRate, 0);
        assertEquals(1, getAllSent());
        assertEquals(0, getSentFailed());
    } catch (InvalidAddressException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}