@Test
public void date() {

  assertTrue(new UriTokenizer("12345-12-25").next(TokenKind.DateValue));
  assertTrue(new UriTokenizer("-0001-12-24").next(TokenKind.DateValue));
  assertFalse(new UriTokenizer("1234-13-01").next(TokenKind.DateValue));
  assertFalse(new UriTokenizer("1234-12-32").next(TokenKind.DateValue));
  assertFalse(new UriTokenizer("123-01-01").next(TokenKind.DateValue));
  assertFalse(new UriTokenizer("1234-00-01").next(TokenKind.DateValue));
  assertFalse(new UriTokenizer("1234-01-00").next(TokenKind.DateValue));
  wrongToken(TokenKind.DateValue, "2000-12-29", 'A');
  wrongToken(TokenKind.DateValue, "0001-01-01", 'A');
  wrongToken(TokenKind.DateValue, "-12345-01-31", 'A');
}