title: EasyMock: isA() fails on the right class
body: <p>I'm telling mock object to wait for method with command:
  mockObject.registerSQLDriver(isA(SomeName.class));</p>
  
  <p>At runtime method is called exactly with instance of SomeName class, but the test fails telling that "Unexpected method call registerSQLDriver()"</p>
  
  <p>What can cause this problem?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>resetToDefault(_SQLDriverManager);
  _SQLDriverManager.registerSQLDriver(isA(SQLDriver.class));
  expectLastCall().anyTimes();
  replay(_SQLDriverManager);
  </code></pre>