HeaderExtractor implements EnumeratedValuesExtractor { @Override public Enumeration<String> getValues(String key) { return request.getProperties(key); } HeaderExtractor(PortletRequest request,
            PortletResponse response); @Override Enumeration<String> getKeys(); @Override String getValue(String key); @Override Enumeration<String> getValues(String key); @Override void setValue(String key, String value);  }
@SuppressWarnings("unchecked") @Test public void testGetValues() { Enumeration<String> keys = createMock(Enumeration.class); expect(request.getProperties("name")).andReturn(keys); replay(request, response, keys); assertEquals(keys, extractor.getValues("name")); verify(request, response, keys); }