book = em.find(org.apache.openjpa.integration.validation.Book.class, 1);
assertNotNull(book);
// PathImpl path = PathImpl.createPathFromString("org.apache.openjpa.integration.validation.Book.pages");
// Path.Node node = path.getLeafNode();
Path.Node node = getLeafNodeFromString("org.apache.openjpa.integration.validation.Book.pages");
TraversableResolver tr = new TraversableResolverImpl();
assertTrue(tr.isReachable(book, node, Book.class, null, ElementType.METHOD));
assertTrue(tr.isCascadable(book, node, Book.class, null, ElementType.METHOD));
em.getTransaction().commit();
closeEMF();
}