@Test
public void methods() {

  UriTokenizer tokenizer = new UriTokenizer("now()");
  assertTrue(tokenizer.next(TokenKind.NowMethod));
  assertTrue(tokenizer.next(TokenKind.CLOSE));
  assertTrue(tokenizer.next(TokenKind.EOF));
  assertFalse(new UriTokenizer("no w()").next(TokenKind.NowMethod));
  assertFalse(new UriTokenizer("now ()").next(TokenKind.NowMethod));
  assertTrue(new UriTokenizer("maxdatetime()").next(TokenKind.MaxdatetimeMethod));
  assertTrue(new UriTokenizer("mindatetime()").next(TokenKind.MindatetimeMethod));
  for (final TokenKind tokenKind : TokenKind.values()) {
    if (tokenKind.name().endsWith("Method")) {
      assertTrue(tokenKind.name(),
          new UriTokenizer(
              tokenKind.name().substring(0, tokenKind.name().indexOf("Method"))
                  .toLowerCase(Locale.ROOT).replace("geo", "geo.") + '(')
              .next(tokenKind));
    }
  }
}