Query { public Query() throws InvalidHttpRequestException { this(null); } Query();  Query(String rawQuerySection); String getParameter(String parameterName); @Override String toString();  }
@Test public void query() throws Exception { Query q = new Query("a=b"); assertNull(q.getParameter("something")); assertEquals("b", q.getParameter("a")); }