@Test
void testCaseInsensitivity() throws Exception {

    assertTrue(SearchPattern.wildcardMatch("Foo", "Foo", false));
    assertTrue(SearchPattern.wildcardMatch("Foo", "Foo", true));
    Assertions.assertFalse(SearchPattern.wildcardMatch("Foo", "FOO", false));
    assertTrue(SearchPattern.wildcardMatch("Foo", "FOO", true));
    assertTrue(SearchPattern.wildcardMatch("Fo*", "Foo0", false));
    assertTrue(SearchPattern.wildcardMatch("Fo*", "Foo0", true));
    Assertions.assertFalse(SearchPattern.wildcardMatch("Fo*", "FOo0", false));
    assertTrue(SearchPattern.wildcardMatch("Fo*", "FOO0", true));
    assertTrue(SearchPattern.wildcardMatch("Fo?", "Foo", false));
    assertTrue(SearchPattern.wildcardMatch("Fo?", "Foo", true));
    Assertions.assertFalse(SearchPattern.wildcardMatch("Fo?", "FOo", false));
    assertTrue(SearchPattern.wildcardMatch("Fo?", "FoO", false));
    assertTrue(SearchPattern.wildcardMatch("Fo?", "FOO", true));
}