@Test
public void testOr() {

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