MBeanServerHandler implements MBeanServerHandlerMBean, MBeanRegistration { public String mBeanServersInfo() { return mBeanServerManager.getServersInfo(); } MBeanServerHandler(Configuration pConfig, LogHandler pLogHandler); Object dispatchRequest(JsonRequestHandler pRequestHandler, JmxRequest pJmxReq); final ObjectName registerMBean(Object pMBean,String ... pOptionalName); final void destroy(); MBeanServerExecutorLocal getMBeanServerManager(); ServerHandle getServerHandle(); static List<ServerDetector> lookupDetectors(); String mBeanServersInfo(); ObjectName preRegister(MBeanServer server, ObjectName name); final String getObjectName(); void postRegister(Boolean registrationDone); void preDeregister(); void postDeregister();  }
@Test public void mbeanServers() throws MBeanException, IOException, ReflectionException, MalformedObjectNameException { checkMBeans(new ObjectName("java.lang:type=Memory")); String info = handler.mBeanServersInfo(); assertTrue(info.contains("Platform MBeanServer")); assertTrue(info.contains("type=Memory")); }