"Get return incorrect object");
}
@Test
public void dateOfTheLastReadPostShouldBeUpdated() {
LastReadPost post = PersistedObjectsFactory.getDefaultLastReadPost();
post.setPostCreationDate(new DateTime());
session.save(post);
DateTime newPostDate = post.getPostCreationDate().plusMinutes(34);
post.setPostCreationDate(newPostDate);
lastReadPostDao.saveOrUpdate(post);
LastReadPost updatedPost = (LastReadPost) session.get(LastReadPost.class, post.getId());
assertEquals(updatedPost.getPostCreationDate(), newPostDate,
"Update doesn't work, because field value didn't change.");
}