I have read plenty of questions on here about overriding .equals and .hashcode for testing purposes only.
My Domain classes have implemented .equals and .hashcode. Should I be
1) Duplicating these classes in my test project
2) Using the Domain Class .equals in my test project
The only justification I can see for point one is if the .equals and .hascode are different in the test project, however in my case they are not. Therefore I believe that point two is the answer.
The reason I ask is that I am trying to follow the principle of least astonishment ready for when someone else looks at my code in future.