public void testUpdate() {
Researcher researcher = dod.getRandomResearcher();
pretendThisResearcherIsLoggedIn(researcher);
ResearcherDto dto = new ResearcherDto();
int rand = random.nextInt();
dto.setBibliography(researcher.getBibliography() + rand);
String email = "audrey+TEST" + rand + "@mathforum.org";
dto.setEmail(email);
dto.setFirstName("firstName" + rand);
dto.setLastName("lastname" + rand);
dto.setJobTitle("jobtitle" + rand);
dto.setOrganization("organization" + rand);
dto.setPassword("password" + rand);
dto.setPasswordConfirm("password" + rand);
dto.setWebsite("http://mathforum.org" + rand);
dto.setRecaptcha_challenge_field("test");
dto.setRecaptcha_response_field("test");
dto.setId(researcher.getId());
BindingResult bindingResult = new BeanPropertyBindingResult(dto, "researcher");
String oldPassword = researcher.getPassword();
researcherManager.update(dto, bindingResult);