@Test
public void testRepeat() {

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