HeaderExtractor implements EnumeratedValuesExtractor { @Override public String getValue(String key) { return request.getHeader(key); } HeaderExtractor(HttpServletRequest request,
            HttpServletResponse response); @SuppressWarnings("unchecked") @Override Enumeration<String> getKeys(); @Override String getValue(String key); @SuppressWarnings("unchecked") @Override Enumeration<String> getValues(String key); @Override void setValue(String key, String value);  }
@Test public void testGetValue() { expect(request.getHeader("name")).andReturn("value"); replay(request, response); assertEquals("value", extractor.getValue("name")); verify(request, response); }