super.setUp();
AbstractProperties properties = getProperties();
boolean useProxies = properties.getBoolean(CPAProperties.USE_JDBC_PROXIES, true);
AbstractConnectionFactory factory = null;
JdoConf jdoConf = getJdoConf(DBNAME, MAPPING);
if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
factory = new DriverConnectionFactory(jdoConf, 0, null);
} else if (jdoConf.getDatabase(0).getDatabaseChoice().getDataSource() != null) {
factory = new DataSourceConnectionFactory(jdoConf, 0, new Mapping());
} else if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
factory = new JNDIConnectionFactory(jdoConf, 0, null);
}
factory.initializeFactory();
_connection = factory.createConnection();
// if connection is not wrapped by a proxy yet, create one now
if (!useProxies) {
ClassLoader loader = _connection.getClass().getClassLoader();
Class < ? > [] interfaces = new Class < ? > [] {Connection.class};