}
@SuppressWarnings("unchecked")
public void testElenco() throws Exception {
DBCentri dbCentri = new DBCentri();
dbCentri.preparaDb();
_reqMock = new MockHttpServletRequest("GET",
"/ricercheCentri.admin?action=elenco");
_reqMock.setParameter(Constant.LETTERA, "c");
ModelAndView mav = _controller.elenco(_reqMock, _resMock);
assertEquals("admin/elencoRicercaAlfabeticaCentri", mav.getViewName());
List centri = (List) mav.getModel().get(Constant.ELENCO_CENTRI);
assertEquals(2, centri.size());
dbCentri.pulisciDb();
}