test pmd rules

Ensure you override both equals() and hashCode()