VacationReply { public static Builder builder(Mail originalMail) { return new Builder(originalMail); } private  VacationReply(MailAddress sender, List<MailAddress> recipients, MimeMessage mimeMessage); static Builder builder(Mail originalMail); MailAddress getSender(); List<MailAddress> getRecipients(); MimeMessage getMimeMessage(); static final String FROM_HEADER; static final String TO_HEADER; }
@Test(expected = NullPointerException.class) public void vacationReplyShouldThrowOnNullMail() { VacationReply.builder(null); }
@Test(expected = NullPointerException.class) public void vacationReplyShouldThrowOnNullOriginalEMailAddress() throws Exception { VacationReply.builder(FakeMail.defaultFakeMail()) .receivedMailRecipient(null); }