public void testDefaultJmxAgentConfig() throws Exception
{
Agent agent = muleContext.getRegistry().lookupAgent("jmx-agent");
assertNotNull(agent);
assertEquals(JmxApplicationAgent.class, agent.getClass());
JmxApplicationAgent jmxAgent = (JmxApplicationAgent) agent;
assertEquals(false, jmxAgent.isCreateServer());
assertEquals(true, jmxAgent.isLocateServer());
assertEquals(true, jmxAgent.isEnableStatistics());
assertEquals(SimplePasswordJmxAuthenticator.class, jmxAgent.getJmxAuthenticator().getClass());
agent = muleContext.getRegistry().lookupAgent(JmxServerNotificationAgent.DEFAULT_AGENT_NAME);
assertNotNull(agent);
assertEquals(JmxServerNotificationAgent.class, agent.getClass());