User user = em.createQuery("select u from User u where u.id = :id", User.class).setParameter("id", (long) 1)
.getSingleResult();
int originalSize = helper.getAllComments(em).size();
Comment comment = new Comment();
comment.setAuthor(user);
comment.setDate(new Date());
comment.setMessage("beautiful");
comment.setImage(image);
if (!image.isAllowComments()) {
image.setAllowComments(true);
}