@Test
void shouldCache() {

    final HttpRequest delegate = mock(HttpRequest.class);
    when(delegate.getHeaders()).thenReturn(HttpHeaders.empty());
    final CachingHttpRequest unit = new CachingHttpRequest(delegate);
    unit.getHeaders();
    unit.getHeaders();
    verify(delegate, atMost(1)).getHeaders();
}