### Question:
SendEmail { protected ByteArrayOutputStream serializeMimeData() { return serializeMimeData(message); } 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 testEmailWithEmbeddedImage() throws MimeException, IOException, AddressException { Message message = loadMimeMessage("androidEmbeddedImage.eml"); SendEmail sendEmail = new SendEmail(new InternetAddress("john@test.opush"), message); Message afterARoundTrip = loadMimeMessage(new ByteArrayInputStream(sendEmail.serializeMimeData().toByteArray())); testEmailWithEmbeddedImage(sendEmail); SendEmail sendEmailAfterARoundTrip = new SendEmail(new InternetAddress("john@test.opush"), afterARoundTrip); testEmailWithEmbeddedImage(sendEmailAfterARoundTrip); }