String value, String finalValue, Boolean result) throws Exception
{
SubstringMatchingRule rule = getRule();
// normalize the 2 provided values and check that they are equals
ByteString normalizedValue =
rule.normalizeValue(ByteString.valueOf(value));
ByteString normalizedFinal =
rule.normalizeValue(ByteString.valueOf(finalValue));
Boolean liveResult = rule.valueMatchesSubstring(
normalizedValue, null, null, normalizedFinal);
if (result != liveResult)
{