@Test
public void testSome() {

  assertEquals(2, Patterns.atMost(2, CharPredicates.ALWAYS).match("abc", 0, 3));
  assertEquals(0, Patterns.atMost(0, CharPredicates.ALWAYS).match("abc", 0, 3));
  assertEquals(0, Patterns.atMost(1, CharPredicates.NEVER).match("abc", 0, 3));
  assertEquals(0, Patterns.atMost(2, CharPredicates.ALWAYS).match("", 0, 0));
}