@Test
public 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");
}