TRUNK-4216 - Equals method should not assume anything about the type of its argument