return camelContext;
}
@Test
public void testNamingPatternSpring() throws Exception {
final ManagementAgent managementAgent = context.getManagementStrategy().getManagementAgent();
assertNotNull(managementAgent);
final MBeanServer mBeanServer = managementAgent.getMBeanServer();
assertNotNull(mBeanServer);
final String mBeanServerDefaultDomain = managementAgent.getMBeanServerDefaultDomain();
assertEquals("org.apache.camel", mBeanServerDefaultDomain);
final String managementName = context.getManagementName();
assertNotNull("CamelContext should have a management name if JMX is enabled", managementName);
LOG.info("managementName = {}; name = {}", managementName, context.getName());