StateAwareParameterExtractor extends ParameterExtractor implements HasAddableKeys<String> { @Override public void setValue(String key, String value) { response.setRenderParameter(key, value); } StateAwareParameterExtractor(PortletRequest request, StateAwareResponse response); @Override void setValue(String key, String value);  }
@Test public void testSetValue() { PortletRequest request = createMock(PortletRequest.class); StateAwareResponse response = createMock(StateAwareResponse.class); response.setRenderParameter("name", "value"); replay(request, response); StateAwareParameterExtractor extractor = new StateAwareParameterExtractor(request, response); extractor.setValue("name", "value"); verify(request, response); }