@Test(expected = IllegalArgumentException.class)
public void rejectEmptyExpressions() {

  String template = "https://www.example.com/{}/things";
  UriTemplate.create(template, Util.UTF_8);
  fail("Should not accept empty expressions");
}