private static final List<String> EMPTY = Collections.emptyList();
@Test
public void extractsSingleQueryParameter() throws Exception {
HttpRequest req = new StubHttpRequest("http://host.com:8080/path?fish=cod&fruit=orange");
assertEquals("cod", req.queryParam("fish"));
}
@Test
public void extractsMultipleQueryParameters() throws Exception {
HttpRequest req = new StubHttpRequest("http://host.com:8080/path?fish=cod&fruit=orange&fish=smørflyndre");