assertEquals("p2 is '2'", "2", parameters.get("p2").get(0));
}
@Test
public void testGetParameters3ParametersWithDuplicate() {
HttpRequest req = new HttpRequestImpl(HttpVersion.HTTP_1_1, HttpMethod.GET, "/","p0=&p1=1&p0=2", null);
Map<String, List<String>> parameters = req.getParameters();
assertEquals("2 parameters", 2, parameters.size());
assertEquals("two p0", 2, parameters.get("p0").size());
assertEquals("1st p0 is emtpy", "", parameters.get("p0").get(0));
assertEquals("2nd p0 is '2'", "2", parameters.get("p0").get(1));
assertEquals("one p1", 1, parameters.get("p1").size());