connector.setDaemon(false);
connector.setThreaded(false);
connector.setJMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9913/jmxrmi");
manager.init(policy);
// setup the fack instrumentation
AnnotationTestInstrumentation im = new AnnotationTestInstrumentation();
ObjectName name = JMXUtils.getObjectName(im.getInstrumentationName(),
im.getUniqueInstrumentationName(),
BUS_ID);
im.setName("John Smith");
manager.processEvent(new InstrumentationCreatedEvent(im));
try {
Object val = manager.getMBeanServer().getAttribute(name, NAME_ATTRIBUTE);
assertEquals("Incorrect result", "John Smith", val);