}
}
public void testFindAllReservations() {
em.getTransaction().begin();
Reservation reservation1 = new Reservation(em.find(Reader.class, new Long(1)),
em.find(Book.class, new Long(8)), new Date(System.currentTimeMillis()));
Reservation reservation2 = new Reservation(em.find(Reader.class, new Long(1)),
em.find(Book.class, new Long(9)), new Date(System.currentTimeMillis()));
em.persist(reservation1);
em.persist(reservation2);
em.getTransaction().commit();