public void contextConfigurationOnCreation() {
ODatabaseDocumentTx db = new ODatabaseDocumentTx("memory:testCtxCfgOnCreate");
Map<OGlobalConfiguration, Object> settings = new HashMap<OGlobalConfiguration, Object>();
settings.put(OGlobalConfiguration.STORAGE_COMPRESSION_METHOD, "gzip");
db.create(settings);
db.close();
ODatabaseDocumentTx db2 = new ODatabaseDocumentTx("memory:testCtxCfgOnCreate").open("admin", "admin");
Assert.assertEquals(db2.getConfiguration().getValueAsString(OGlobalConfiguration.STORAGE_COMPRESSION_METHOD), "gzip");
}