assertNull(dao.get(Long.MAX_VALUE));
}
@Test
public void testUpdate() throws Exception {
ExternalLink link = ObjectsFactory.getDefaultExternalLink();
dao.saveOrUpdate(link);
session.clear();
link = (ExternalLink) session.get(ExternalLink.class, link.getId());
fillFieldsRandomly(link);
dao.saveOrUpdate(link);
session.flush();
session.clear();
ExternalLink actual = (ExternalLink) session.get(ExternalLink.class, link.getId());
assertReflectionEquals(link, actual);
}