@Test
public void testUntil() {

  Parser<String> comma = Scanners.isChar(',').source();
  Parser<?> dot = Scanners.isChar('.');
  Parser<List<Object>> parser = INTEGER.cast().or(comma).until(dot);
  assertParser(mode, parser, "123,456.", Arrays.<Object>asList(123, ",", 456), ".");
  assertFailure(mode, parser, "", 1, 1);
  assertParser(mode, parser, ".", Arrays.asList(), ".");
}