// Just use current class object, as we have no provider to test with
Map<String,Object> props = new HashMap<String,Object>();
props.put("javax.persistence.validation.mode",
String.valueOf(ValidationMode.CALLBACK));
// create our EMF w/ props
OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI)
OpenJPAPersistence.createEntityManagerFactory(
"simple-none-mode",
"org/apache/openjpa/integration/validation/persistence.xml",
props);
assertNotNull(emf);
OpenJPAEntityManager em = null;
try {
// create EM
em = emf.createEntityManager();
assertNotNull(em);
// verify created LifecycleEventManager type
OpenJPAConfiguration conf = em.getConfiguration();
assertNotNull(conf);
assertTrue("ValidationMode",