bug fix: decorate add methods + force decoration of all methods
fix tests (some tests are failing at the moment)
bug fix: getCurrentUsername fails if principal is not an instance of UserDetails
fix authenication mocking
remove throws DatabaseException from methods
bug fix: replace findOne with findAll, replace deprecated methods
fix tests, add tests
add hashcode and equals
Merge pull request #937 from erwinwinder/master

Implement hashcode and equals
Merge branch 'master' of https://github.com/molgenis/molgenis into feature/studydefinitionservice
Merge pull request #936 from dennishendriksen/feature/studydefinitionservice

Fix tests + big fix in getCurrentUsername
Fix test