controller.showEditPage(PATH_NAME);
}
@Test
public void updatePageTest() throws NotFoundException {
SimplePageDto pageDto = new SimplePageDto();
pageDto.setId(PAGE_ID);
pageDto.setNameText(NAME);
pageDto.setContentText(CONTENT);
pageDto.setPathName(PATH_NAME);
BindingResult bindingResult = new BeanPropertyBindingResult(pageDto, "simplePageDto");
ModelAndView mav = controller.update(pageDto, bindingResult, PATH_NAME);
assertViewName(mav, "redirect:/pages/" + PATH_NAME);
verify(simplePageService).updatePage(any(SimplePageInfoContainer.class));
}