public void testUpdate() throws Exception {
DBCentro dbCentro = new DBCentro();
dbCentro.preparaDb();
DBPages dbPages = new DBPages();
dbPages.preparaDb();
_reqMock = new MockHttpServletRequest("GET", "/page.admin");
_reqMock.addParameter(Constant.ID, "46");
Page pagina = new PageImpl(1,"titolone","bla bla",true,0,46);
ModelAndView mav = _controller.onSubmit(_reqMock, _resMock, pagina,
new BindException(pagina, Constant.PAGE));
assertEquals(Constant.REDIRECT_ELENCO_PAGES, mav.getViewName());
dbPages.pulisciDb();
dbCentro.pulisciDb();
dbCentro = null;
dbPages = null;
}