@Test
public void testMultiThreaded() throws Exception {
MultiThreadedRequestHandler requestHdl = new MultiThreadedRequestHandler();
IHttpServer server = new HttpServer(requestHdl);
server.start();
IBlockingConnection con = new BlockingConnection("localhost", server.getLocalPort());
con.write("GET /test HTTP/1.1\r\n" +
"User-Agent: me\r\n" +
"Host: localhost:" + server.getLocalPort() + "\r\n\r\n");