@Test
public void testToken_tokenNamesListed() {

  Terminals terminals = Terminals.operators("+", "-");
  Parser<Token> parser = terminals.token("+", "-").from(terminals.tokenizer(), WHITESPACES);
  assertEquals(new Token(0, 1, Tokens.reserved("+")), parser.parse("+"));
  assertEquals(new Token(0, 1, Tokens.reserved("-")), parser.parse("-"));
  assertFailure(mode, parser, "*", 1, 1, "+ or - expected, * encountered.");
}