Adding equals and hashcode so I can test this with a mocking framework