this.deleteStatsRecord();
}
public void testServiceFailure() throws ApsSystemException {
RequestContext reqCtx = this.getRequestContext();
Role role = new Role();
role.setName("testRole");
User user = new User();
user.addAutority(role);
reqCtx.getRequest().getSession().setAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER, user);
Page page = new Page();
page.setCode("login");
page.setGroup("free");
page.setModel(new PageModel() );
reqCtx.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE, page);
Lang lang = new Lang();
lang.setCode("it");
reqCtx.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_LANG, lang);
MockHttpServletRequest request = (MockHttpServletRequest) reqCtx.getRequest();
request.setRemoteAddr("255.255.255.255");
request.addHeader("Referer", "homeTest");
request.addHeader("User-Agent", "Mio Test Browser");
request.addHeader("accept-language", "sardo");