@Test
public void testAmong() {

  Pattern pattern = Patterns.among("a1");
  assertEquals(1, pattern.match("a", 0, 1));
  assertEquals(1, pattern.match("10", 0, 1));
  assertEquals(1, pattern.match("a", 0, 1));
  assertEquals(MISMATCH, pattern.match("", 0, 0));
  assertEquals(MISMATCH, pattern.match("0", 0, 1));
  assertEquals(MISMATCH, pattern.match("1b", 1, 2));
}