PortletRequestDelegate implements RequestDelegate { public Map<String, String[]> getParamValues() { if ((paramValues == null) && (request != null)) { paramValues = request.getParameterMap(); } return (paramValues); } PortletRequestDelegate(PortletRequest request); Map<String, String> getParam(); Map<String, String[]> getParamValues();  }
@SuppressWarnings("unchecked") @Test public void testGetParamValues() { Map<String, String[]> params = createMock(Map.class); expect(request.getParameterMap()).andReturn(params); replay(request, params); assertEquals(params, delegate.getParamValues()); verify(request, params); }