title: How to show object fields instead of references when using assertEquals and the Comparison Failure window
body: <p>When I try to compare two similar lists of the same class of objects using JUnit's <code>assertEquals</code> method, I get the option in Intellij: </p>
  
  <pre><code>&lt;Click to see difference&gt;
  </code></pre>
  
  <p>The Comparison Failure dialog opens and I see the expected references and actual references. I have properly overridden the equals method because when the two objects have the same fields, the test passes.</p>
  
  <p>Instead of showing the references, is it possible to show the fields of the objects? </p>
  
  <p>This will greatly reduce the time it takes to debug a test case.</p>
  
  <p><a href="https://i.stack.imgur.com/kTfAj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kTfAj.png" alt="enter image description here"></a></p>