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