@Test
public void whenSMTP_password_IsNotConfigured_anExceptionIsThrown() throws Exception {

    exception.expect(EmailSenderException.class);
    exception.expectMessage("SMTP password is not configured");
    setInternalState(emailSenderService, "smtp_port", "2500");
    setInternalState(emailSenderService, "smtp_server", "smtp.server.com");
    setInternalState(emailSenderService, "smtp_username", "username");
    emailSenderService.send(emailTO());
}