public void testSimpleRemoteJmx() throws Exception {
// Retrieve an MBeanServerConnection that represent the MBeanServer the remote
// connector server is bound to
MBeanServerConnection connection = connector.getMBeanServerConnection();
ObjectName queryName = new ObjectName("*:*");
java.util.Set names = connection.queryNames(queryName, null);
for (Iterator iter = names.iterator(); iter.hasNext();) {
ObjectName name = (ObjectName) iter.next();
MBeanInfo beanInfo = connection.getMBeanInfo(name);
System.out.println("bean info = " + beanInfo.getDescription());
System.out.println("attrs = " + Arrays.asList(beanInfo.getAttributes()));