class StringUtils {

    public static boolean equals(String s1, String s2, Locale locale) {
        return Collator.getInstance(locale).equals(s1, s2);
    }

}

class StringUtilsTest {

    @Test(dataProvider = "caseInsensitiveEquals")
    public void testCaseInsensitiveEquals(String a, String b, boolean expected) {

        assert StringUtils.equals(a, b, false) == expected;
    }

}