@Test
    void testSendMessageWithCarriageReturn() throws Exception {
        final String bodyWithCR = "\r\n\r\nKeep these\r\npesky\r\n\r\ncarriage returns\r\n";
        this.sendMessage("sender@hereagain.com", "CRTest", bodyWithCR, "receivingagain@there.com");

        assertEquals(1, storingMessageListener.getMessages().size());
        final Iterator<StoredMessage> emailIter = storingMessageListener.getMessages().iterator();
        final StoredMessage email = emailIter.next();
        assertEquals(email.getMimeMessage().getContent().toString(), bodyWithCR);
    }
See
<a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1474700&amp;group_id=78413&amp;atid=553186">...</a>
for discussion about this bug

@throws IOException        on IO error
@throws MessagingException on messaging error
src/test/java/de/gessnerfl/fakesmtp/smtp/SmtpComplianceIntegrationTest.java