MBeanServer wrapper = MBeanServerWrapper.getWrapper();
MBeanServer server = builder.newMBeanServer(DEFAULT_DOMAIN, wrapper, delegate);
MBeanServerWrapper.getHandler(wrapper).server = server;
BuilderTest test = new BuilderTest();
wrapper.registerMBean(test, name);
assertTrue("Registered", server.isRegistered(name));
assertTrue("Got the correct MBeanServer", test.server.equals(wrapper));
assertTrue("Wrapper invoked", MBeanServerWrapper.getHandler(wrapper).invoked);