public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void pathStyleExpansionEncodesReservedCharacters() {
    String template = "{;half}";
    UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
    String expanded = uriTemplate.expand(Collections.singletonMap("half", "50%"));
    assertThat(expanded).isEqualToIgnoringCase(";half=50%25");
  }