@Test
public void testNext() {

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