BodyDataSink serverChannel = reqHdl.dataSinkRef.get();
File file = QAUtil.createTempfile();
RandomAccessFile raf = new RandomAccessFile(file, "rw");
FileChannel fc = raf.getChannel();
String txt = "Hello my client\r\n";
serverChannel.write(txt);
serverChannel.flush();
QAUtil.sleep(200);
long transfered = fc.transferFrom(clientChannel, 0, 9000000);
fc.close();
raf.close();
Assert.assertEquals(txt.length(), transfered);
Assert.assertTrue(QAUtil.isEquals(file, txt));