import org.springframework.context.support.ClassPathXmlApplicationContext;
public class JmxInstrumentationWithConnectorTest extends EndpointReferenceTest {
public void testJmxConfiguration() throws Exception {
InstrumentationAgent agent = getMandatoryBean(DefaultInstrumentationAgent.class, "agent");
assertNotNull("SpringInstrumentationAgent must be configured for JMX support", agent);
assertNotNull("MBeanServer must be configured for JMX support", agent.getMBeanServer());
assertEquals("org.apache.camel.test", agent.getMBeanServer().getDefaultDomain());
}