protected SMTPServer createServer(MessageHandlerFactory mhf) {
return new SMTPServer(mhf);
}
protected TestPluginLifeCycle createLifeCycle() throws Exception {
TestPluginLifeCycle test = new TestPluginLifeCycle(new MailPlugin(), new GroovyLanguageProxy(), new JavaLanguage());
test.setProperty(MailPlugin.SMTP_HOST, "localhost");
test.setProperty(MailPlugin.SMTP_PORT, 5000);
test.setProperty(MailPlugin.SMTP_FROM, "foo@gmail.com");
return test;
}