_connectorPort = getNextAvailable(_registryPort + 1);
//Start a TestApplicationRegistry with (JMX) management disabled, because we
//will instantiate our own directly in order to manipulate it for the test.
XMLConfiguration config = new XMLConfiguration();
config.addProperty("management.enabled", "false");
_registry = new TestApplicationRegistry(new ServerConfiguration(config));
ApplicationRegistry.initialise(_registry);
_plugin = new TestPlugin();
_registry.getSecurityManager().addHostPlugin(_plugin);