task.setPersistanceId(1);
task.setCharges(new HashSet<Charge>());
story.getTasks().add(task);
// Charge
Charge charge = new ChargeImpl();
Date chargeDate = new Date();
charge.setDay(chargeDate);
charge.setDaysNeededToFinish(2);
charge.setPersistanceId(1);
charge.setPersistanceVersion(5);
charge.setTimeUsedToday(0.5);
User chargeUser = new UserImpl();
charge.setUser(chargeUser);
task.getCharges().add(charge);
// appel de la recherche de la story
mockStoryRepository.expectFindByPersistanceId(1, story);