void () { String html = "<HTML><HEAD><TITLE>Hello Worlds</TITLE></HEAD><body><img src='test.gif'></body></HTML>"; String pattern = "<title>'_a</title>"; options.setCaseSensitiveMatch(false); assertEquals("case insensitive search", 1, findMatchesCount(html, pattern, HtmlFileType.INSTANCE)); String pattern2 = "<'t SRC=\"'_v\"/>"; assertEquals("case insensitive attribute", 1, findMatchesCount(html, pattern2, HtmlFileType.INSTANCE)); String pattern3 = "<'t '_a=\"TEST.gif\">"; assertEquals("case insensitive attribute value", 1, findMatchesCount(html, pattern3, HtmlFileType.INSTANCE)); }