@Override
  boolean areSerializedFieldsEqual(ByteArrayComparable other) {
    if (other == this) {
      return true;
    }
    if (!(other instanceof BinaryPrefixComparator)) {
      return false;
    }
    return super.areSerializedFieldsEqual(other);
  }
Returns true if and only if the fields of the comparator that are serialized are equal to the
corresponding fields in other. Used for testing.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/BinaryPrefixComparator.java