title: Testing Model class equals() method using Mockito
body: <p>How do I test the Model class' <code>equals()</code> method. I keep experiencing the following issue:</p>
  
  <pre><code> &lt;&lt;&lt; FAILURE! - in EmployeeTest
  testEquals(EmployeeTest)  Time elapsed: &lt;&lt;&lt; ERROR!
  org.mockito.exceptions.misusing.UnfinishedVerificationException: 
  Missing method call for verify(mock) here:
  -&gt; at EmployeeTest.testEquals(EmployeeTest.java:20)
  
  Example of correct verification:
      verify(mock).doSomething()
  
  Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
  Those methods *cannot* be stubbed/verified.
  Mocking methods declared on non-public parent classes is not supported.
  
  Sample test method. Using Mockito.verify() for testing equals method.  
  </code></pre>