context.addModuleProvider(new DaoModuleProvider("org.jrest4guice.dao.test.jpa", "org.jrest4guice.dao.jpa"),
new JpaGuiceModuleProvider()).init();
BookDao dao = context.getBean(BookDao.class);
Assert.assertNotNull(dao);
Book b1 = getNewBook("Book 1", 10f, 10);
Book b2 = getNewBook("Book 2", 10f, 10);
dao.create(b1, b2);
Assert.assertNotNull(b1.getId());
Assert.assertNotNull(b2.getId());
dao.delete(b1, b2);
b1 = dao.load(b1.getId());
b2 = dao.load(b2.getId());
Assert.assertNull(b1);
Assert.assertNull(b2);
}