public void testWorkQueueInstrumentation() throws Exception {
SpringBusFactory factory = new SpringBusFactory();
bus = factory.createBus("managed-spring.xml", true);
im = bus.getExtension(InstrumentationManager.class);
assertTrue("Instrumentation Manager should not be null", im != null);
WorkQueueManagerImpl wqm = new WorkQueueManagerImpl();
wqm.setBus(bus);
wqm.getAutomaticWorkQueue();
MBeanServer mbs = im.getMBeanServer();
assertNotNull("MBeanServer should be available.", mbs);
ObjectName name = new ObjectName(ManagementConstants.DEFAULT_DOMAIN_NAME
+ ":type=WorkQueues,*");