public static HttpCacheEntry makeCacheEntry(final Instant requestDate,
                                                final Instant responseDate,
                                                final int status,
                                                final Header[] responseHeaders,
                                                final Resource resource) {
        return makeCacheEntry(
                requestDate,
                responseDate,
                Method.GET, "/", null,
                status, responseHeaders,
                resource);
    }
Generates a response body with random content.
 @param nbytes length of the desired response body
 @return an {@link HttpEntity}
httpclient5-cache/src/test/java/org/apache/hc/client5/http/impl/cache/HttpTestUtils.java