public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void skipAlreadyEncodedVariable() {
    String template = "https://www.example.com/testing/{foo}";
    UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
    String encodedVariable = UriUtils.encode("Johnny Appleseed", Util.UTF_8);
    Map<String, Object> variables = new LinkedHashMap<>();
    variables.put("foo", encodedVariable);
    assertThat(uriTemplate.expand(variables))
        .isEqualToIgnoringCase("https://www.example.com/testing/" + encodedVariable);
  }