// recherche de l'iteration
EasyMock.expect(mockIterationRepository.findByPersistanceId(persistanceId)).andReturn(iterationToUpdate);
// mock de l'erreur
Errors errors = AgilePlanningObjectFactory.getErrors();
errors.reject("erreur");
EasyMock.expect(mockIterationValidator.validate(EasyMock.isA(Iteration.class))).andReturn(errors);
mocksControl.replay();
Errors errorsFromService = iterationService.update(new Date(), new Date(), persistanceId, 3);