### Question:
CacheUtil { public static void clear(final String diskStorePath, final String cacheName) { final CacheManager cacheManager = getCacheManager(diskStorePath); final Cache cache = cacheManager.getCache(cacheName); if (cache != null) { cache.removeAll(); } }  static void store(final String diskStorePath, final String cacheName, final Object key, final Object value); static Object get(final String diskStorePath, final String cacheName, final Object key); static void clear(final String diskStorePath, final String cacheName);  }### Answer:
@Test public void testClear() { CacheUtil.clear(cacheManager.getConfiguration().getDiskStoreConfiguration().getPath(), cacheManager.getName()); assertNull("Cannot clear the cache", CacheUtil.get(cacheManager.getName(), cacheManager.getConfiguration().getDiskStoreConfiguration().getPath(), "testStoreKey")); }