}
public void testDefaultSettings() throws Exception
{
InitialContext ctx = this.getInitialContext();
PersistenceUnitSettings settings = (PersistenceUnitSettings) ctx.lookup("ejb3/ejbthree1597/PersistenceUnitSettings");
assertEquals("org.hibernate.cache.HashtableCacheProvider", settings.getCacheProvider());
assertEquals("org.hibernate.transaction.JBossTransactionManagerLookup", settings.getTransactionManagerLookup());
assertEquals("after_statement", settings.getConnectionReleaseMode());
assertEquals("org.hibernate.dialect.HSQLDialect", settings.getDialect());
assertEquals("org.hibernate.hql.ast.ASTQueryTranslatorFactory", settings.getQueryTranslatorFactory());
assertFalse(settings.isAutoCloseSessionEnabled());
assertFalse(settings.isAutoCreateSchema());
assertFalse(settings.isAutoDropSchema());
assertFalse(settings.isAutoUpdateSchema());
assertFalse(settings.isAutoValidateSchema());
assertFalse(settings.isFlushBeforeCompletionEnabled());
}