title: Change mock object return value dynamically
body: <p>Suppose i have the following method :</p>
  
  <pre><code>public void runLoop(SomeIterator it){
      while(it.hasNext()){
          //do something
      }
  }
  </code></pre>
  
  <p>Now i want to pass in a <code>SomeIterator</code> Mock object that would return <code>Boolean.TRUE</code> in order to go into the loop, but I also want it to return <code>Boolean.FALSE</code> at some point (say after 10 times for example), is there a way to make this happen with PowerMock/EasyMock?</p>
  
  <p>Thanks in advance for your help.</p>