File dir = DbTestUtil.getNewDir();
ByteArrayFormat dataFormat = new ByteArrayFormat();
ByteArrayBinding dataBinding = new ByteArrayBinding(dataFormat);
int envFlags = Db.DB_INIT_MPOOL | Db.DB_CREATE;
env = new DbEnv(0);
env.open(dir.getAbsolutePath(), envFlags, 0);
Db db = new Db(env, 0);
db.open(null, "test.db", null, Db.DB_BTREE, Db.DB_CREATE, 0);
store = new DataStore(db, dataFormat, dataFormat, null);
view = new DataView(store, null, dataBinding, dataBinding, null, true);