@Test
public void testSingleEventTimeout() throws Exception
{
asyncReplyMP = new TestAsyncRequestReplyRequester(muleContext);
asyncReplyMP.setTimeout(1);
SensingNullMessageProcessor target = getSensingNullMessageProcessor();
target.setWaitTime(3000);
LaxAsyncInterceptingMessageProcessor asyncMP = new LaxAsyncInterceptingMessageProcessor(
new WorkManagerSource()
{
public WorkManager getWorkManager() throws MuleException
{
return muleContext.getWorkManager();
}
}
);
asyncMP.setListener(target);
asyncReplyMP.setListener(asyncMP);
asyncReplyMP.setReplySource(target.getMessageSource());
MuleEvent event = getTestEvent(TEST_MESSAGE, getTestService(),
getTestInboundEndpoint(MessageExchangePattern.ONE_WAY));
try