@Test
public void whenSMTP_server_IsNotConfigured_anExceptionIsThrown() throws Exception {

    exception.expect(EmailSenderException.class);
    exception.expectMessage("SMTP server is not configured");
    setInternalState(emailSenderService, "smtp_port", "2500");
    emailSenderService.send(emailTO());
}