@Test
public void encodeQueryFormUrlEncoded() {

    assertEquals("foo", UriEncoding.encodeQuery("foo", FORM_URL_ENCODED));
    assertEquals("foo=bar%2F%2B&baz=1", UriEncoding.encodeQuery("foo=bar/+&baz=1", FORM_URL_ENCODED));
    assertEquals("%21%22%23%24%25&%27%28%29*%2B%2C%2F%3A%3B=%3F%40%5B%5C%5D%7B%7C%7D+%C3%A4aZ0",
            UriEncoding.encodeQuery(MANY_DIFFERENT_CHARS, FORM_URL_ENCODED));
}