@Test
public void testSequence() {

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