@Test
public void canSplitQueryUrl() throws MalformedURLException, UnsupportedEncodingException {

    URL url = new URL("http://www.tenniskafe.com/query?key1=value1&key2=value2");
    URLUtils URLUtils = new URLUtils();
    Map<String, String> parameters = URLUtils.splitQuery(url);
    assertTrue(parameters.containsKey("key1"));
    assertEquals("value1", parameters.get("key1"));
    assertTrue(parameters.containsKey("key2"));
    assertEquals("value2", parameters.get("key2"));
}