request.setContentType("test/content-type");
String rpcEndPoint = provider.getRpcEndpoint();
rpcEndPoint = rpcEndPoint.substring(0, rpcEndPoint.length() - 1);
HttpResponseMessage httpResponseMessage = new HttpResponseMessage("GET",
new URL(provider.getRpcEndpoint()), 200, stringToInputStream("[]"));
EasyMock.expect(authScheme.getHttpMessage(eq(provider), eq("POST"),
eq(rpcEndPoint), isA(Map.class), isA(byte[].class)))
.andAnswer(new IAnswer<HttpMessage>() {