protected final void replayMocks(){
  assertFalse("Mocks have already been set to replay",mocksReplayed);
  if (usePowerMock) {
    PowerMock.replayAll();
  }
 else {
    EasyMock.replay(mocks.toArray());
  }
  for (  IMocksControl mockControl : mockControls) {
    mockControl.replay();
  }
  mocksReplayed=true;
}

protected final void replayMocks ( ) { assertFalse ( "Mocks have already been set to replay" , mocksReplayed ) ; if ( usePowerMock ) { PowerMock . replayAll ( ) ; } else { EasyMock . replay ( mocks . toArray ( ) ) ; } for ( IMocksControl mockControl : mockControls ) { mockControl . replay ( ) ; } mocksReplayed = true ; }
set all registered mocks to replay
