mailSender.setJavaMailProperties(capture(properties));
PowerMock.replay(JavaMailSenderImpl.class);
replay(env, mailSender);
JavaMailSender sender = new MailModule().javaMailSender(env);
assertNotNull(sender);
checkProperty(properties, SMTP_HOST, host);
checkProperty(properties, SMTP_PORT, null);
checkProperty(properties, SMTP_START_TLS, null);
checkProperty(properties, MAIL_USER, null);