@Test
    void testSendEncodedMessage() throws Exception {
        final String body = "\u3042\u3044\u3046\u3048\u304a"; // some Japanese letters
        final String charset = "iso-2022-jp";

        this.sendMessageWithCharset("sender@hereagain.com", "EncodedMessage", body, "receivingagain@there.com", charset);

        assertEquals(1, storingMessageListener.getMessages().size());
        final Iterator<StoredMessage> emailIter = storingMessageListener.getMessages().iterator();
        final StoredMessage email = emailIter.next();
        assertEquals(body + "\r\n", email.getMimeMessage().getContent().toString());
    }
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