}
@Test
public void testCreate() {
Comment comment1 = new Comment();
comment1.setCommentText("comment1");
Comment comment2 = new Comment();
comment2.setCommentText("comment2");
beginTr();
commentFacade.create(comment1);
commentFacade.create(comment2);
commitTr();
Comment comment1db = em.find(Comment.class, comment1.getId());
Comment comment2db = em.find(Comment.class, comment2.getId());
assertEquals(comment1, comment1db);
assertEquals(comment2, comment2db);
assertEquals(comment1.getCommentText(), "comment1");
assertEquals(comment2.getCommentText(), "comment2");