### Question:
SendEmail { public boolean isInvitation() { return invitation; } SendEmail(InternetAddress defaultFrom, Message message); Set<Address> getTo(); Set<Address> getCc(); Set<Address> getCci(); InternetAddress getFrom(); boolean isInvitation(); InputStream getMessage(); void dispose();  }### Answer:
@Test public void testAndroidIsInvitation() throws MimeException, IOException, AddressException { Message message = loadMimeMessage("androidInvit.eml"); SendEmail sendEmail = new SendEmail(new InternetAddress("john@test.opush"), message); assertThat(sendEmail.isInvitation()).isTrue(); }
@Test public void testForwardedInvitation() throws MimeException, IOException, AddressException{ Message message = loadMimeMessage("forwardInvitation.eml"); SendEmail sendEmail = new SendEmail(new InternetAddress("john@test.opush"), message); assertThat(sendEmail.isInvitation()).isFalse(); }
@Test public void testForwardedEmbeddedInvitation() throws MimeException, IOException, AddressException{ Message message = loadMimeMessage("forwardEmbeddedInvitation.eml"); SendEmail sendEmail = new SendEmail(new InternetAddress("john@test.opush"), message); assertThat(sendEmail.isInvitation()).isTrue(); }