public AbstractTestServer createServer(int port, int max, int scavenge)
{
ConnectorServer srv = null;
try
{
srv = new ConnectorServer(
new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:0/jettytest"),
"org.eclipse.jetty:name=rmiconnectorserver");
srv.start();
MongoTestServer server = new MongoTestServer(port,max,scavenge,true);
MBeanContainer mbean = new MBeanContainer(ManagementFactory.getPlatformMBeanServer());