@Test
  void pctEncode() {
    String queryParameterValue = "firstName=James;lastName=Bond;location=England&Britain?";
    assertThat(UriUtils.encode(queryParameterValue, UTF_8))
        .isEqualToIgnoringCase(
            "firstName%3DJames%3BlastName%3DBond%3Blocation%3DEngland%26Britain%3F");
  }
pct-encode a String, ensuring that all reserved characters are encoded.
core/src/test/java/feign/template/UriUtilsTest.java