MimeMessageBuilder { public MimeMessageBuilder attachment(Document doc) { attachment = doc; return this; } MimeMessageBuilder(Session session, Address fromAddress, Address[] recipients); MimeMessageBuilder subject(String str); MimeMessageBuilder text(String str); MimeMessageBuilder documents(DirectDocuments directDocuments); MimeMessageBuilder messageId(String str); MimeMessageBuilder attachment(Document doc); MimeMessageBuilder attachmentName(String str); MimeMessage build();  }
@Test public void testAttachment() { System.out.println("attachment"); ProvideAndRegisterDocumentSetRequestType.Document doc = null; MimeMessageBuilder instance = new MimeMessageBuilder(null, null, null); MimeMessageBuilder result = instance.attachment(doc); assertTrue(result instanceof MimeMessageBuilder); }