public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void encodeLiterals() {
    String template = "https://www.example.com/A Team";
    UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
    String expandedTemplate = uriTemplate.expand(Collections.emptyMap());
    assertThat(expandedTemplate).isEqualToIgnoringCase("https://www.example.com/A%20Team");
  }