}
/*===== Common methods =====*/
@Test
public void correctBannerShouldBeSaved() {
Banner banner = ObjectsFactory.getDefaultBanner();
bannerDao.saveOrUpdate(banner);
assertNotSame(banner.getId(), 0, "Id not created");
session.evict(banner);
Banner bannerInDatabase = (Banner) session.get(Banner.class, banner.getId());
assertReflectionEquals(banner, bannerInDatabase);
}