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;
PluginResourceAdapter ada
By default equals() returns true if object have the same address in memory.
So
PluginResourceAdapter adapter;
PluginResourceAdapter other;
adapter = other = mock (PluginResourceAdapter.class);
returns true to you. If you want false use
PluginResourceAdapter adapter = mock (PluginResourceAdapter.class);
PluginResourceAdapter other = mock (PluginResourceAdapter.class);