Test For isEqualTo and CompareTo