@Test
public void testMake() throws Exception {

    DB db = DBMaker
            .newMemoryDB()
            .journalDisable()
            .make();
    verifyDB(db);
    //check default values are set
    assertTrue(db.engine.getClass() == CacheHashTable.class);
    assertEquals(1024 * 32, ((CacheHashTable) db.engine).cacheMaxSize);
    EngineWrapper w = (EngineWrapper) ((CacheHashTable) db.engine).getWrappedEngine();
    assertTrue(w instanceof SnapshotEngine);
    assertTrue(w.getWrappedEngine().getClass() == AsyncWriteEngine.class);
    AsyncWriteEngine r = (AsyncWriteEngine) w.getWrappedEngine();
    assertTrue(r.getWrappedEngine() instanceof StorageDirect);
}