IHttpClientEndpoint httpClient = new HttpClient();
FutureResponseHandler hdl = new FutureResponseHandler();
HttpRequestHeader header = new HttpRequestHeader("POST", "http://localhost:" + server.getLocalPort() + "/");
header.setContentType("text/plain; charset=UTF-8");
BodyDataSink bodyDataSink = httpClient.send(header, hdl);
Assert.assertTrue("flushmode is not sync", bodyDataSink.getFlushmode() == FlushMode.SYNC);
File file = QAUtil.createTestfile_40k();
InputStream is = new FileInputStream(file);
System.out.println("got inputstream " + is);