@Test
public void testCacheSize() throws Exception {

    DB db = DBMaker
            .newMemoryDB()
            .journalDisable()
            .cacheSize(1000)
            .make();
    verifyDB(db);
    assertEquals(1000, ((CacheHashTable) db.engine).cacheMaxSize);
}