@Test
public void testOptional() {

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