StateAwareRequestDelegate implements RequestDelegate { public Map<String, String[]> getParamValues() { if ((paramValues == null) && (request != null)) { paramValues = new StateAwareParameterMap(request.getParameterMap(), response.getRenderParameterMap()); } return (paramValues); } StateAwareRequestDelegate(PortletRequest request,
            StateAwareResponse response); Map<String, String> getParam(); Map<String, String[]> getParamValues();  }
@SuppressWarnings("unchecked") @Test public void testGetParamValues() { Map<String, String[]> requestMap = createMock(Map.class); Map<String, String[]> responseMap = createMock(Map.class); expect(request.getParameterMap()).andReturn(requestMap); expect(response.getRenderParameterMap()).andReturn(responseMap); replay(request); assertTrue(delegate.getParamValues() instanceof StateAwareParameterMap); verify(request); }