@Test
public void testToken() {

  assertEquals("foo", FOO.token().toString());
  assertEquals(new Token(0, 0, "foo"), FOO.token().parse("", mode));
  assertEquals(new Token(0, 3, 123), INTEGER.token().parse("123", mode));
  assertFailure(mode, INTEGER.token(), "a", 1, 1);
}