title: EasyMock: Times behaviour not being checked for strict mock
body: <p>My unit test contains a "strict" mock of my DAO. My mocking behaviour is common to all tests apart from the @Test below. Therefore, I have added this common mocking behaviour within the @Before method. The specialist mocking behaviour is then added to the @Test itself:</p>
  
  <pre><code>@Before
  public void setUp() {
      reset(myDAO);
      expect(myDAO.findMyObjects(code, myID)).andReturn(myObjects).times(1);
      expect(myDAO.findMyObjects(myID)).andReturn(myObjects).times(1);
      replay(myDAO);
  }
  
  @Test
  public void testMyFirstMethod() {
      reset(myDAO);
      expect(myDAO.findMyObjects(myID)).andReturn(new ArrayList&lt;MyObject&gt;()).times(200);
      replay(myDAO);
  
      Set&lt;OtherObject&gt; otherObjects = myTestClass.myTestMethod(null, myID);
      assertEquals("Empty set is returned", 0, otherObjects.size());
  }
  </code></pre>
  
  <p>I have checked that the .times(1) behaviour is validated in my other unit tests. However, in the above test the .times(200) behaviour is not validated (as my unit test only invokes this once).
  Why is this?</p>