title: Prevent stubbing of equals method
body: <p>I would like to test my class' equals() method but Mockito seems to be calling the stub version every time. My test is as follows;</p>
  
  <pre><code>PluginResourceAdapter adapter = mock (PluginResourceAdapter.class);
  PluginResourceAdapter other = mock (PluginResourceAdapter.class);
  
  when(adapter.getNumberOfEndpointActivation()).thenReturn(1);
  when(other.getNumberOfEndpointActivation()).thenReturn(0);
  
  boolean result = adapter.equals(other);
  assertFalse(result);
  </code></pre>
  
  <p>I know I cannot stub the equals method which means Mockito should be calling my real implementation but its not. </p>
  
  <p>I have also tried this: </p>
  
  <pre><code>when (adapter.equals(any()).thenCallRealMethod()
  </code></pre>
  
  <p>but I get the same result.</p>