@Test
public void testBigCache() throws IOException {

	CacheConfig config = new CacheConfig();
	config.setStorageMode(storageMode);
	cache = new BigCache<String>(TEST_DIR, config);
	Set<String> rndStringSet = new HashSet<String>();
	for (int i = 0; i < 2000000 * STRESS_FACTOR; i++) {
		String rndString = TestUtil.randomString(64);
		rndStringSet.add(rndString);
		cache.put(rndString, rndString.getBytes());
		if ((i % 50000) == 0 && i != 0) {
			System.out.println(i + " rows written");
		}
	}
	for (String rndString : rndStringSet) {
		byte[] value = cache.get(rndString);
		assertNotNull(value);
		assertEquals(rndString, new String(value));
	}
	// delete
	for (String rndString : rndStringSet) {
		cache.delete(rndString);
	}
	for (String rndString : rndStringSet) {
		byte[] value = cache.get(rndString);
		assertNull(value);
	}
}