// normalize the 2 provided values
ByteString normalizedValue1 =
ruleInstance.normalizeValue(ByteString.valueOf(value1));
ByteString normalizedValue2 =
ruleInstance.normalizeValue(ByteString.valueOf(value2));
// check that the approximatelyMatch return the expected result.
Boolean liveResult = ruleInstance.approximatelyMatch(normalizedValue1,
normalizedValue2);
assertEquals(result, liveResult);