}
public void testToAndFromAttributes() throws MessagingException,
IOException {
Mailet strip = new StripAttachment();
FakeMailetConfig mci = new FakeMailetConfig("Test",
new FakeMailContext());
mci.setProperty("attribute", "my.attribute");
mci.setProperty("remove", "all");
mci.setProperty("notpattern", ".*\\.tmp.*");
strip.init(mci);
Mailet recover = new RecoverAttachment();
FakeMailetConfig mci2 = new FakeMailetConfig("Test",
new FakeMailContext());
mci2.setProperty("attribute", "my.attribute");
recover.init(mci2);
Mailet onlyText = new OnlyText();
onlyText.init(new FakeMailetConfig("Test", new FakeMailContext()));
MimeMessage message = new MimeMessage(Session
.getDefaultInstance(new Properties()));
MimeMultipart mm = new MimeMultipart();