@Test
public void testSequence_withMap5_fails() {

  replay();
  Parser<Integer> parser =
      Parsers.sequence(isChar('a'), isChar('b'),isChar('c'), isChar('d'), isChar('e'), map5);
  assertFailure(mode, parser, "xbcde", 1, 1);
  assertFailure(mode, parser, "axcde", 1, 2);
  assertFailure(mode, parser, "abxde", 1, 3);
  assertFailure(mode, parser, "abcxe", 1, 4);
  assertFailure(mode, parser, "abcdx", 1, 5);
}