public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void testToString() {
    String template = "https://www.example.com/foo/{bar}/{baz:[0-9]}";
    UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
    assertThat(uriTemplate.toString()).isEqualToIgnoringCase(template);
  }