EntityManagerFactory emf =
Persistence.createEntityManagerFactory("SchemaLoadInvocationFTest");
emf.createEntityManager();
} finally {
logger.setLevel(oldLevel);
logger.removeAppender(mockAppender);
}
// if this test is run along with the rest of the force-jpa-test suite, the connector will have
// already been instantiated previously, and the cache will always be hit (expected log line
// will not appear). if this test is run by itself, the cache will be missed only once
// (expected log line will appear only once).