// Now read it back and verify
log.info("Reading back from database and verifying...");
EntityTransaction readTx = em.getTransaction();
readTx.begin();
Book fellowship = em.find(Book.class, book.getId());
Assert.assertNotNull(fellowship);
Assert.assertEquals("Fellowship of the Ring", fellowship.getTitle());
Assert.assertEquals("JRR", fellowship.getAuthor().getFirstName());
Assert.assertEquals("Tolkein", fellowship.getAuthor().getLastName());