assertEquals(me, loaded.getMarkup().get(0));
}
public void testLoadArtifactInNewSession() {
Artifact a = new HibernateArtifact(createIdentifier(1), null, new Date(), "bula bula");
MarkupElement me = new TrivialLineMarkup(0, 5);
a.getMarkup().add(me);
HibernateUtil.save(a);
HibernateUtil.closeSession();
Artifact loaded = (Artifact) HibernateUtil.getCurrentSession().get(HibernateArtifact.class, a.getId().getPk());
assertNotNull(loaded);