@Test
public void pctEncodeWithReservedCharacters() {

  String withReserved = "/api/user@host:port#section[a-z]/data";
  String encoded = UriUtils.encode(withReserved, UTF_8, true);
  assertThat(encoded).isEqualTo("/api/user@host:port#section[a-z]/data");
}