public void testExceptionChaining()
{
String rootMsg = "Root Test Exception Message";
String msg = "Test Exception Message";
Exception e = new MuleContextException(MessageFactory.createStaticMessage(msg), new DefaultMuleException(
MessageFactory.createStaticMessage(rootMsg)));
assertEquals(rootMsg, e.getCause().getMessage());
assertEquals(msg, e.getMessage());
assertEquals(e.getClass().getName() + ": " + msg, e.toString());
}