Add hashCode() to Trust/Score so we can stick them into HashSets for unit testing
Add functions for cloning all Identities/Trusts/Scores to DatabaseBasedTest:
- The will be used for comparing a modified WOT to the original one in the unit test which the following commit will introduce.
Implement test_RestoreOwnIdentity_DeleteOwnIdentity_Chained:
- Generates random identities and a random trust/score graph
- Uses restoreOwnIdentity() on one of the identities and then inverts the restore by calling deleteOwnIdentity() upon the restored identity
- Compares the resulting graph to the original one using HashSets
I think this test is quite beautiful :)