assertEquals(DefaultConfigurableKeyedObjectPool.class, testConnector.getDispatchers().getClass());
}
public void testConnectorUsingOverriddenDispatcherPoolFactory()
{
Connector connector = muleContext.getRegistry().lookupConnector("testConnectorWithOverriddenFactory");
assertTrue(connector instanceof TestConnector);
TestConnector testConnector = (TestConnector) connector;
assertEquals(StubDispatcherPoolFactory.class, testConnector.getDispatcherPoolFactory().getClass());
assertEquals(StubConfigurableKeyedObjectPool.class, testConnector.getDispatchers().getClass());