server.start();
HttpClient httpClient = new HttpClient();
httpClient.setCacheMaxSizeKB(10);
IHttpRequest request = new PostRequest("http://localhost:" + server.getLocalPort() + "/", "text/plain", QAUtil.generateByteArray(5000));
IHttpResponse resp = httpClient.call(request);
Assert.assertEquals(200, resp.getStatus());
Assert.assertEquals("test", resp.getBlockingBody().readString());
Assert.assertNull(resp.getHeader(CacheHandler.XHEADER_NAME));
QAUtil.sleep(2000);
request = new PostRequest("http://localhost:" + server.getLocalPort() + "/", "text/plain", QAUtil.generateByteArray(5000));
resp = httpClient.call(request);
Assert.assertEquals(200, resp.getStatus());
Assert.assertNull(resp.getHeader(CacheHandler.XHEADER_NAME));
Assert.assertEquals("test", resp.getBlockingBody().readString());