@Test
public void testNotFoundChain() throws Exception {
RequestHandlerChain chain = new RequestHandlerChain();
File file = QAUtil.createTestfile_400k();
String basepath = file.getParentFile().getAbsolutePath();
IHttpRequestHandler businessHandler = new IHttpRequestHandler() {
public void onRequest(IHttpExchange exchange) throws IOException, BadMessageException {
exchange.send(new HttpResponse(200, "text/plain", "OK"));
}
};
chain.addLast(businessHandler);
FileServiceRequestHandler fileHandler = new FileServiceRequestHandler(basepath, true);
chain.addLast(fileHandler);
IServer server = new HttpServer(chain);
server.start();
HttpClient httpClient = new HttpClient();