@Test
public void testCacheHardRefEnable() throws Exception {

    DB db = DBMaker
            .newMemoryDB()
            .journalDisable()
            .cacheHardRefEnable()
            .make();
    verifyDB(db);
    assertTrue(db.engine.getClass() == CacheHardRef.class);
}