Superclass tests that the classes are equal.