@Test
public void parsesQueryString() {

    String queryString = "q1=to%20be%20or%20not%20to%20be&q2=foo&q2=%D0%9F%D1%80%D0%B8%D0%B2%D1%96%D1%82";
    MultivaluedMapImpl expected = new MultivaluedMapImpl();
    expected.add("q1", "to%20be%20or%20not%20to%20be");
    expected.add("q2", "foo");
    expected.add("q2", "%D0%9F%D1%80%D0%B8%D0%B2%D1%96%D1%82");
    MultivaluedMap<String, String> result = parseQueryString(queryString, false);
    assertEquals(expected, result);
}