@Test
public void testRequestTimeoutNonThreaded() throws Exception {
RequestHandlerChain root = new RequestHandlerChain();
NonThreadedRequestHandler h1 = new NonThreadedRequestHandler();
h1.setOnConnectResponse(false);
h1.setOnRequestTimeoutResponse(false);
root.addLast(h1);
NonThreadedRequestHandler h2 = new NonThreadedRequestHandler();
h1.setOnRequestTimeoutResponse(false);
root.addLast(h2);
HttpServer server = new HttpServer(root);
server.setRequestTimeoutMillis(1000);
ConnectionUtils.start(server);