int exhaustedAction,
long waitTimeout,
int maxBufferSize) throws MuleException
{
TestConnector connector = new TestConnector(muleContext);
ThreadingProfile threadingProfile = new ImmutableThreadingProfile(threads, threads, maxBufferSize,
ThreadingProfile.DEFAULT_MAX_THREAD_TTL, waitTimeout, exhaustedAction, true, null, null);
threadingProfile.setMuleContext(muleContext);
connector.setDispatcherThreadingProfile(threadingProfile);
muleContext.getRegistry().registerConnector(connector);
connector.setDispatcherFactory(new DelayTestMessageDispatcherFactory());
}