### Question:
BaseRequest implements Request { @Override public Map<String, List<String>> getHttpHeaders() { return m_headers.getRequestHeaders(); } BaseRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource); @Override Result process(); @Override ResourceInstance getResource(); @Override String getURI(); @Override int getAPIVersion(); @Override Predicate getQueryPredicate(); @Override Map<String, TemporalInfo> getFields(); @Override Renderer getRenderer(); @Override Map<String, List<String>> getHttpHeaders(); @Override PageRequest getPageRequest(); @Override RequestBody getBody(); @Override SortRequest getSortRequest(); @Override String getRemoteAddress(); static final int DEFAULT_PAGE_SIZE; static final String PAGE_SIZE_PROPERTY_KEY; static final String ASC_ORDER_PROPERTY_KEY; }### Answer:
@Test public void testGetHttpHeaders() { HttpHeaders headers = createNiceMock(HttpHeaders.class); MultivaluedMap<String, String> mapHeaders = new MultivaluedMapImpl(); Request request = getTestRequest(headers, null, null, null, null, null, null); expect(headers.getRequestHeaders()).andReturn(mapHeaders); replay(headers); assertSame(mapHeaders, request.getHttpHeaders()); verify(headers); }