connector.preRegister(server, null);
connector.create();
connector.start();
// Verify that the ServerInvoker has a reference to the MBeanServer
ServerInvoker invoker = connector.getServerInvoker();
assertNotNull(invoker);
assertEquals(server, invoker.getMBeanServer());
// Verify that the ServerInvoker is registered with the MBeanServer
ObjectName objectName = new ObjectName(invoker.getMBeanObjectName());
assertTrue(server.isRegistered(objectName));
assertTrue(server.isInstanceOf(objectName, "org.jboss.remoting.ServerInvoker"));
Object o = server.getAttribute(objectName, "Configuration");;
assertTrue(o instanceof Map);
assertEquals("diamond", ((Map) o).get("bluemonkey"));