I reimplemented hashCode and equals to greatly simplify the unit tests. The Message class does not implement equals and was preventing me to compare two Request. I only consider what is important in Message for equals and hashCode.