@Test
public 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);
}