@Test
public void testOr() {

  assertEquals(1, Patterns.hasAtLeast(1).or(Patterns.hasAtLeast(2)).match("abc", 0, 2));
  assertEquals(1, Patterns.hasAtLeast(1).or(Patterns.hasAtLeast(2)).match("abc", 0, 1));
  assertEquals(0, Patterns.NEVER.or(Patterns.ALWAYS).match("abc", 0, 0));
  assertEquals(MISMATCH, Patterns.NEVER.or(Patterns.NEVER).match("", 0, 0));
}