public static UriTemplate create(String template, Charset charset) {
    return new UriTemplate(template, true, charset);
  }
@Test
  void substituteNullMap() {
    assertThrows(IllegalArgumentException.class,
        () -> UriTemplate.create("stuff", Util.UTF_8).expand(null));
  }