@Test
@SuppressWarnings("deprecation")
public void testQuoted() {

  Parser<String> scanner = Scanners.quoted(Scanners.isChar('<'), Scanners.isChar('>'),
      Patterns.INTEGER.toScanner("number"));
  assertStringScanner(mode, scanner, "<>");
  assertStringScanner(mode, scanner, "<123>");
  assertFailure(mode, scanner, "", 1, 1);
  assertFailure(mode, scanner, "<12", 1, 4);
  assertFailure(mode, scanner, "<a>", 1, 2);
}