Test equals(), hashCode(), and toString()