    @Test
    public void testNeitherContentLocationNorLocationInvalidatedIfHostNotSameAsRequest() throws IOException {

        URI requestUri = URI.create("http://host1/some");
        URI contentLocationUri = URI.create("http://host2/some/content/location");
        URI locationUri = URI.create("http://host3/some/location");

        HTTPRequest request = new HTTPRequest(requestUri, HTTPMethod.POST);
        Headers responseHeaders = new Headers().
                add(new Header(HeaderConstants.CONTENT_LOCATION, contentLocationUri.toString())).
                add(new Header(HeaderConstants.LOCATION, locationUri.toString()));
        when(responseResolver.resolve(isA(HTTPRequest.class))).thenReturn(new HTTPResponse(Status.CREATED, responseHeaders));

        cache.execute(request);

        verify(cacheStorage, never()).invalidate(contentLocationUri);
        verify(cacheStorage, never()).invalidate(locationUri);
    }