@Test
public void incompleteTemplateIsALiteral() {

  String template = "https://www.example.com/testing/foo}}";
  UriTemplate uriTemplate = UriTemplate.create(template, Util.UTF_8);
  assertThat(uriTemplate.expand(Collections.emptyMap()))
      .isEqualToIgnoringCase("https://www.example.com/testing/foo%7D%7D");
}