HttpAsyncRequestHandlerRegistry registry = new HttpAsyncRequestHandlerRegistry();
registry.register("*", new BasicAsyncRequestHandler(new TestHandler(true)));
HttpHost target = start(registry, null);
File tmpdir = FileUtils.getTempDirectory();
this.tmpfile = new File(tmpdir, "dst.test");
TestZeroCopyPost httppost = new TestZeroCopyPost(target.toURI() + "/bounce", true);
TestZeroCopyConsumer consumer = new TestZeroCopyConsumer(this.tmpfile);
Future<Integer> future = this.httpclient.execute(httppost, consumer, null);
Integer status = future.get();
Assert.assertNotNull(status);
Assert.assertEquals(HttpStatus.SC_OK, status.intValue());