exception should not be tested with pojo
executing hashcode and equals