new UsernamePasswordCredentials("test", "test"));
this.httpclient = HttpClients.custom().setDefaultCredentialsProvider(credsProvider).build();
final RequestConfig config = RequestConfig.custom().setExpectContinueEnabled(true).build();
final HttpPut httpput = new HttpPut("/");
httpput.setConfig(config);
httpput.setEntity(new InputStreamEntity(
new ByteArrayInputStream(
new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 } ),
-1));
final HttpResponse response = this.httpclient.execute(getServerHttp(), httpput);