@Test
public void testArray() {

  Parser<Object[]> parser = Parsers.array(isChar('a'), isChar('b'));
  assertEquals("array", parser.toString());
  assertEquals(Arrays.asList('a', 'b'), Arrays.asList(parser.parse("ab", mode)));
  assertFailure(mode, parser, "xb", 1, 1);
  assertFailure(mode, parser, "ax", 1, 2);
}