title: EasyMock: Mocked object is calling actual method
body: <p>I've following code snippet in my unit test,</p>
  
  <pre><code>ClassToBeMocked mock = createMock(ClassToBeMocked.class); //I've statically imported EasyMock.*
  mock.callMethod(); //This is a void method
  expectLastCall();
  replay(mock);
  </code></pre>
  
  <p>But when I run the test, instead of seeting up the expectaion, callMethod() is actually called. Am I doing something wrong?</p>
  
  <p>I'm fairly new to EasyMock or any mocking framework and blocked because of this problem. Any help would be greatly appreciated.</p>
  
  <p>Thanks,
  AndyS</p>