Actually it is used in tests. Be careful that the java contract is to always override hashCode with Equals, otherwise HashMaps don't work.