}
@Test
public void testCustomActiveMqConnectorConfig() throws Exception
{
JmsConnector c = (JmsConnector) muleContext.getRegistry().lookupConnector("customActiveMqJmsConnector");
assertNotNull(c);
assertTrue(c instanceof ActiveMQJmsConnector);
assertNotNull(c.getConnectionFactory());
assertTrue(c.getConnectionFactory() instanceof ActiveMQConnectionFactory);
assertEquals(Session.DUPS_OK_ACKNOWLEDGE, c.getAcknowledgementMode());
assertNull(c.getUsername());
assertNull(c.getPassword());
assertNotNull(c.getRedeliveryHandlerFactory());
assertTrue(c.getRedeliveryHandlerFactory().create() instanceof TestRedeliveryHandler);
assertEquals("myClient", c.getClientId());
assertTrue(c.isDurable());
assertTrue(c.isNoLocal());
assertTrue(c.isPersistentDelivery());
assertEquals(5, c.getMaxRedelivery());
assertTrue(c.isCacheJmsSessions());
assertFalse(c.isEagerConsumer());
assertEquals("1.1", c.getSpecification()); // 1.0.2b is the default, should be changed in the config
}