@Test
public void parsesAndDecodeQueryString() {

    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 be or not to be");
    expected.addAll("q2", "foo", "\u041f\u0440\u0438\u0432\u0456\u0442");
    MultivaluedMap<String, String> result = parseQueryString(queryString, true);
    assertEquals(expected, result);
}