Refactoring of SmtpMailerTest