}
public void testSendMailWithChangedPort() throws Throwable {
MockMessageHandlerFactory myFactory2 = new MockMessageHandlerFactory();
MockAuthenticationHandlerFactory myAuthFactory2 = new MockAuthenticationHandlerFactory();
SMTPServer smtpServer2 = new SMTPServer(myFactory2, myAuthFactory2);
smtpServer2.setPort(25001);
smtpServer2.start();
MailConfig originaryConfig = this._mailManager.getMailConfig();