{
MuleClient client = new MuleClient(muleContext);
RemoteDispatcher dispatcher = client.getRemoteDispatcher("tcp://localhost:25551");
MuleMessage result = dispatcher.sendRemote("vm://test.queue.2", new Date(), null);
assertNotNull(result);
ExceptionPayload exceptionPayload = result.getExceptionPayload();
assertNotNull(exceptionPayload);
assertTrue(exceptionPayload.getRootException().getClass().getName(),
exceptionPayload.getRootException() instanceof FunctionalTestException);
assertEquals("Functional Test Service Exception", exceptionPayload.getRootException().getMessage());
}