title: How to use `any` matcher with parameters to the object
body: <p>I am facing a problem with using <code>assertThat(object.method(new SomeClass(someParam)))</code> as a result, the comparison is when actually running the test, the matcher is comparing object references not the contents of the object as <code>equals</code> method isn't overrided. </p>
  
  <p>I don't want to do the following to solve the problem</p>
  
  <ul>
  <li>Mock constructor since I want to use the real object where the method is actually called</li>
  <li><code>assertThat(object.method(any(SomeClass.class)))</code> since it loosens the test and the parameter <code>someParam</code> is important.</li>
  </ul>
  
  <p>Is there a solution which would do something like the following?</p>
  
  <ul>
  <li><code>assertThat(object.method(any(SomeClass.class, someParam)))</code> where it will match both object calling it with a specific constructor passing the parameter.</li>
  </ul>