@Test
public void testList() {

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