// ====================================================================
// bad encoding
try
{
// reset the mail class
MockEmailConcrete anotherEmail = new MockEmailConcrete();
// set a dodgy encoding scheme
anotherEmail.setCharset("bad.encoding\uc5ec\n");
// set a valid address but bad personal name
anotherEmail.addCc("me@home.com", "\t.bad.name.\uc5ec\n");
fail("Should have thrown an exception");
}
catch (EmailException e)
{
assertTrue(true);