@Test
public void getParameterMapHasAllValues() throws Exception
{
HttpServletRequest request = createMock(HttpServletRequest.class);
ParametersServletRequestWrapper wrapper = new ParametersServletRequestWrapper(request);
replay(request);
wrapper.addParameter("single", "blah");
wrapper.addParameter("multi", "one");
wrapper.addParameter("multi", "two");
Map parameters = wrapper.getParameterMap();
assertEquals(parameters.size(), 2);
assertEquals(parameters.get("single"), "blah");
assertEquals((String[]) parameters.get("multi"), new String[]
{ "one", "two" });