@Test
void parseQueryWhenInvalidURL()
{

    Map<String, ?> query = tool.parseQuery("a=b ' onclick='foo");
    assertEquals(Collections.singleton("a"), query.keySet(), "should have one parameter");
    assertEquals(Collections.singletonList("b ' onclick='foo"), query.get("a"), "should have one parameter");
}