### Question:
HeadersMapper { public HttpHeaders toHttpHeaders(ResponseHeaders responseHeaders) { HttpHeaders httpHeaders = new HttpHeaders(); responseHeaders.getHeadersMap().forEach(httpHeaders::add); return httpHeaders; }  HttpHeaders toHttpHeaders(ResponseHeaders responseHeaders);  }### Answer:
@Test void toHttpHeaders() { HttpHeaders actualHeaders = headersMapper.toHttpHeaders(responseHeaders); assertFalse(actualHeaders.isEmpty()); assertTrue(actualHeaders.containsKey(ResponseHeaders.CONTENT_TYPE)); assertEquals(MediaType.APPLICATION_JSON, actualHeaders.getContentType()); assertTrue(actualHeaders.containsKey(LOCATION)); assertEquals(URI.create(LOCATION_VALUE), actualHeaders.getLocation()); }