closeEMF(emf);
emf = createEMF(LOAD_PROPS);
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
em.persist(new NamedQueryEntity("foo"));
em.flush();
Query q = em.createNamedQuery("NamedQueryEntity.namedQuery");
assertEquals(1, q.getResultList().size());
em.getTransaction().rollback();
em.close();