unsafeReq.setHeader("Location","http://bar.example.com/content");
testUnsafeMethodDoesNotInvalidateCacheForHeaderUri(unsafeReq);
}
protected HttpRequestWrapper makeRequestWithBody(final String method, final String requestUri) {
final HttpEntityEnclosingRequest request =
new BasicHttpEntityEnclosingRequest(method, requestUri, HttpVersion.HTTP_1_1);
final int nbytes = 128;
request.setEntity(HttpTestUtils.makeBody(nbytes));
request.setHeader("Content-Length",""+nbytes);
return HttpRequestWrapper.wrap(request);
}