@Test
public void testSome() {

  assertEquals(0, Patterns.NEVER.atMost(2).match("abc", 0, 3));
  assertEquals(0, Patterns.ALWAYS.atMost(2).match("abc", 0, 3));
  assertEquals(0, Patterns.NEVER.atMost(0).match("abc", 0, 3));
  assertEquals(0, Patterns.ALWAYS.atMost(0).match("abc", 0, 3));
  assertEquals(2, Patterns.hasAtLeast(1).atMost(2).match("abc", 0, 3));
  assertEquals(4, Patterns.hasAtLeast(2).atMost(2).match("abcde", 0, 5));
}