@Test
public void testParsingParams() throws Exception {

    URI uri = new URI("static:(http://localhost:61617?proxyHost=jo&proxyPort=90)?proxyHost=localhost&proxyPort=80");
    Map<String,String>parameters = URISupport.parseParameters(uri);
    verifyParams(parameters);
    uri = new URI("static://http://localhost:61617?proxyHost=localhost&proxyPort=80");
    parameters = URISupport.parseParameters(uri);
    verifyParams(parameters);
    uri = new URI("http://0.0.0.0:61616");
    parameters = URISupport.parseParameters(uri);
}