@Test
public void testStringCaseInsensitive() {

  assertEquals(0, Patterns.stringCaseInsensitive("").match("a", 0, 0));
  assertEquals(3, Patterns.stringCaseInsensitive("abc").match("abcd", 0, 4));
  assertEquals(3, Patterns.stringCaseInsensitive("abc").match("ABC", 0, 3));
  assertEquals(MISMATCH, Patterns.stringCaseInsensitive("abc").match("ABx", 0, 3));
  assertEquals(MISMATCH, Patterns.stringCaseInsensitive("abc").match("abc", 0, 0));
  assertEquals(MISMATCH, Patterns.stringCaseInsensitive("abc").match("ab", 0, 0));
}