Executor executor = Executors.newSingleThreadScheduledExecutor();
InetSocketAddress address = new InetSocketAddress(59504);
URI publicUri = URI.create("http://localhost:800/");
WebServer webServer = createWebServer(executor, address, publicUri).add(new StringHttpHandler("text/plain", "body")).start().get();
try {
Socket client = new Socket(InetAddress.getLocalHost(), 59504);
OutputStream out = client.getOutputStream();
out.write(("<policy-file-request/>\0").getBytes("ASCII"));