BodyDataSink clientChannel = httpClient.send(new HttpRequestHeader("POST", "http://localhost:" + server.getLocalPort() + "/test/resource"), respHdl);
File file = QAUtil.createTestfile_40k();
RandomAccessFile raf = new RandomAccessFile(file, "r");
FileChannel fc = raf.getChannel();
fc.transferTo(0, fc.size(), clientChannel);
clientChannel.close();
fc.close();
raf.close();
Assert.assertEquals(200, respHdl.getResponse().getStatus());
Assert.assertTrue(QAUtil.isEquals(file, new ByteBuffer[] { ByteBuffer.wrap(reqHdl.getDataSource().readBytes()) }));