Protocol prot = new Protocol("c", "a.b");
// start on port 9999
InetSocketAddress addr = new InetSocketAddress(InetAddress.getLocalHost(), 9999);
Server server = new SaslSocketServer(new SocketDoesntClose(prot), addr);
server.start();
// stop -- I would expect this to fully release the socket
server.close();
Thread.sleep(10000);