when(mockRequest.getUrl()).thenReturn(URL);
final Set<HttpMessageHeader> headers = new HashSet<HttpMessageHeader>();
headers.add(new HttpMessageHeader(HttpMessageHeaderField.CONTENTTYPE.getValue(), CONTENT_TYPE));
when(mockRequest.getHttpMessageHeaders()).thenReturn(headers);
serviceInvoker = new ApacheHttpClientImpl() {
/* package */@Override
org.apache.http.client.HttpClient getClient() {
return mockHttpClient;
}