title: EasyMock number of "expected" calls is greater than the value set in "times" method
body: <p>When refactoring some old unit tests, I added a <code>verify()</code> call to see how many times a method was being expected and was surprised to see that the "expected" calls was greater than  what was set using <code>times()</code>. For some reason the expect call on the next line is being added to my method. </p>
  
  <p>Why is this happening?</p>
  
  <p><strong>Test Class</strong></p>
  
  <pre><code>public class SandBoxTest {    
      @Test
      public void shouldGetSand() {
          Sand niceMock = EasyMock.createNiceMock(Sand.class);
  
          EasyMock.expect(niceMock.sandMethod()).andReturn(1).times(2);
          EasyMock.expect(Box.boxMethod()).andReturn(99).times(11);
  
          EasyMock.replay(niceMock);
  
          EasyMock.verify(niceMock);
      }
  }
  </code></pre>
  
  <p><strong>Output When Run</strong></p>
  
  <pre><code>java.lang.AssertionError: 
    Expectation failure on verify:
      Sand.sandMethod(): expected: 13, actual: 0
  </code></pre>
  
  <p><strong>Output That Was Expected</strong></p>
  
  <pre><code>java.lang.AssertionError: 
    Expectation failure on verify:
      Sand.sandMethod(): expected: 2, actual: 0
  </code></pre>
  
  <p><em><strong>Details:</strong> EasyMock v3.1</em></p>
  
  <p><em><strong>Followup:</strong> Opened feature request with EasyMock. <a href="https://jira.codehaus.org/browse/EASYMOCK-128" rel="nofollow">https://jira.codehaus.org/browse/EASYMOCK-128</a></em></p>