FakeMailetConfig mci = new FakeMailetConfig("Test",new FakeMailContext());
mci.setProperty("text",footer);
mailet.init(mci);
Mail mail = new FakeMail();
mail.setMessage(new MimeMessage(Session
.getDefaultInstance(new Properties()),
new ByteArrayInputStream(asciisource.getBytes())));
mailet.service(mail);
ByteArrayOutputStream rawMessage = new ByteArrayOutputStream();
mail.getMessage().writeTo(
rawMessage,
new String[] { "Bcc", "Content-Length", "Message-ID" });
return rawMessage.toString();
}