### Question:
DBMaker { public DBMaker cacheSize(int cacheSize){ this._cacheSize = cacheSize; return this; } protected  DBMaker(); static DBMaker newMemoryDB(); static DBMaker newDirectMemoryDB(); static DBMaker newAppendFileDB(File file); static BTreeMap<K,V> newTempTreeMap(); static HTreeMap<K,V> newTempHashMap(); static NavigableSet<K> newTempTreeSet(); static Set<K> newTempHashSet(); static DBMaker newTempFileDB(); static DBMaker newFileDB(File file); DBMaker journalDisable(); DBMaker cacheDisable(); DBMaker cacheHardRefEnable(); DBMaker cacheWeakRefEnable(); DBMaker cacheSoftRefEnable(); DBMaker cacheLRUEnable(); DBMaker randomAccessFileEnable(); DBMaker randomAccessFileEnableIfNeeded(); DBMaker cacheSize(int cacheSize); DBMaker asyncWriteDisable(); DBMaker asyncFlushDelay(int delay); DBMaker deleteFilesAfterClose(); DBMaker closeOnJvmShutdown(); DBMaker compressionEnable(); DBMaker encryptionEnable(String password); DBMaker encryptionEnable(byte[] password); DBMaker checksumEnable(); DBMaker readOnly(); DBMaker freeSpaceReclaimDisable(); DBMaker powerSavingModeEnable(); DB make(); TxMaker makeTxMaker(); Engine makeEngine();  }### Answer:
@Test public void testCacheSize() throws Exception { DB db = DBMaker .newMemoryDB() .journalDisable() .cacheSize(1000) .make(); verifyDB(db); assertEquals(1000, ((CacheHashTable) db.engine).cacheMaxSize); }