}
@Test
public void testCreate() {
User user1 = new User();
user1.setUsername("user1");
user1.setPassword("pass1");
user1.setEmail("email1");
User user2 = new User();
user2.setUsername("user2");
user2.setPassword("pass2");
user2.setEmail("email2");
beginTr();
userFacade.create(user1);
userFacade.create(user2);
commitTr();
User user1db = em.find(User.class, user1.getId());
User user2db = em.find(User.class, user2.getId());
assertEquals(user1, user1db);
assertEquals(user2, user2db);
assertEquals(user1.getUsername(), "user1");
assertEquals(user2.getUsername(), "user2");