DefaultRequestWrapper implements RequestWrapper { public Map<String, String[]> getHeaderValues() { return context.getHeaderValues(); } DefaultRequestWrapper(Request context); Request getWrappedRequest(); Map<String, String> getHeader(); Map<String, String[]> getHeaderValues(); Addable<String> getResponseHeaders(); ApplicationContext getApplicationContext(); OutputStream getOutputStream(); Writer getWriter(); PrintWriter getPrintWriter(); boolean isResponseCommitted(); Map<String, String> getParam(); Map<String, String[]> getParamValues(); Locale getRequestLocale(); boolean isUserInRole(String role); Map<String, Object> getContext(String scope); List<String> getAvailableScopes();  }
@SuppressWarnings("unchecked") @Test public void testGetHeaderValues() { Request wrappedRequest = createMockRequest(); Map<String, String[]> header = createMock(Map.class); expect(wrappedRequest.getHeaderValues()).andReturn(header); replay(wrappedRequest); RequestWrapper request = createRequestWrapper(wrappedRequest); assertEquals(header, request.getHeaderValues()); verify(wrappedRequest); }