FileChannel fc = raf.getChannel();
int size = (int) fc.size();
FutureResponseHandler hdl = new FutureResponseHandler();
BodyDataSink bodyDataSink = con.send(new HttpRequestHeader("POST", "/", "text/plain"), size, hdl);
if (bodyDataSink.getFlushmode() != FlushMode.SYNC) {
System.out.println("flush mode is not sync");
Assert.fail("flush mode is not sync");
}