final WebServer server = new NettyWebServer(Executors.newSingleThreadScheduledExecutor(), 9080).start();
server.add(new HttpHandler() {
@Override
public void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control) throws Exception {
System.out.println("We got here");
server.stop().join();
System.out.println("But never here");
stopper.countDown();
}
});
Socket client = new Socket(InetAddress.getLocalHost(), 9080);