Properties localProperties = new Properties();
localProperties.put(DHCPCoreServer.SERVER_ADDRESS, SERVER_ADDR + ':' + SERVER_PORT);
localProperties.put(DHCPCoreServer.SERVER_THREADS, "1");
DHCPCoreServer server = DHCPCoreServer.initServer(new DHCPServerTestServlet(), localProperties);
new Thread(server).start();
synchronized (this) {
wait(300);
}
server.stopServer();
}