title: Why does this EasyMock test fails?
body: <p>Hi I have this test below failing and giving me this error, the fail is on the Verify... but I can't get why.</p>
  
  <blockquote>
    <p>java.lang.AssertionError: 
    Expectation failure on verify:
       debug(isA(java.lang.Object)): expected: 1, actual: 0</p>
  </blockquote>
  
  <p>The test code is this.</p>
  
  <pre><code>   public void testLogInfo()
     {
        JDBCAppender jdbcAppender = createNiceMock(JDBCAppender.class);
        Logger logger = createNiceMock(Logger.class);
        LogDB logDB = new LogDB(null, null, null, LogDBDriver.ODBC, Level.TRACE);
        logDB.setJdbcAppender(jdbcAppender);
        logDB.setLogger(logger);
        // method call
        logger.info(isA(Object.class));      
        expectLastCall().once();
        // replay
        replay(logger);
        replay(jdbcAppender);
        // verify method call
        logDB.log(Level.INFO, "10", "Server", "admin", "shortext", "longText","className","methodName");
        verify(logger);
     }
  </code></pre>