byte[] b1 = new byte[1024];
Random rnd = new Random(System.currentTimeMillis());
rnd.nextBytes(b1);
HttpPost httppost = new HttpPost("/echo/stuff");
httppost.setEntity(new NByteArrayEntity(b1));
Future<HttpResponse> future = this.httpclient.execute(target, httppost, null);
HttpResponse response = future.get();
Assert.assertNotNull(response);
Assert.assertEquals(200, response.getStatusLine().getStatusCode());