FunctionalTestComponent ftc = getFunctionalTestComponent("OriginalMessageRouting");
ftc.setEventCallback(new EventCallback()
{
public void eventReceived(MuleEventContext context, Object component) throws Exception
{
messageProcessedLatch.release();
throw new RuntimeException();
}
});
LocalMuleClient client = muleContext.getClient();
client.dispatch("jms://in2?connector=jmsConnector", MESSAGE_TO_SEND, null);