Hashtable<String, String> env = new Hashtable<String, String>();
env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
JMSServerManager serverManager = new JMSServerManagerImpl(server);
serverManager.setContext(new InitialContext(env));
serverManager.start();
System.out.println("Server started, ready to start client test");
// create the reader before printing OK so that if the test is quick
// we will still capture the STOP message sent by the client