new UsernamePasswordCredentials("test", "test"));
this.httpclient = HttpClients.custom().setDefaultCredentialsProvider(credsProvider).build();
final HttpPost httppost = new HttpPost("/");
httppost.setEntity(new InputStreamEntity(
new ByteArrayInputStream(
new byte[] { 0,1,2,3,4,5,6,7,8,9 }), -1));
try {
this.httpclient.execute(getServerHttp(), httppost);
Assert.fail("ClientProtocolException should have been thrown");