I've two Collection<Audit> collections:
Collection<Audit> pendingAudits;
Collection<Audit> olderAudits;
So, I need to compare all pendingAudits elements are in olderAudits.
In order to compare them, it's necessary to compare that each audit.getId().equals(other.getId()).
Please, take in mind I'm not able to override Audit.equals or Audit.hashCode. It's a third-party class.
I guess I need to create a custom inline Matcher.
Any ideas?