@Test(dataProvider= "caseFoldRuleData")
public void testStringPrepWithCaseFold(String value1,
String value2, Boolean result) throws Exception
{
//Take any caseExact matching rule.
EqualityMatchingRule rule = new CaseIgnoreEqualityMatchingRule();
ByteString normalizedValue1 =
rule.normalizeValue(ByteString.valueOf(value1));
ByteString normalizedValue2 =
rule.normalizeValue(ByteString.valueOf(value2));
Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2);
assertEquals(result, liveResult);
}