@Test
public void testClear() throws Exception {

    CacheKey key = new CacheKey("groupName", ResourceType.CSS);
    CacheValue value = CacheValue.valueOf("rawContent", "hash");
    try (DiskbackedCache cache = new DiskbackedCache(100)) {
        cache.put(key, value);
        CacheValue loaded = cache.get(key);
        assertEquals(value.getHash(), loaded.getHash());
        assertEquals(value.getRawContent(), loaded.getRawContent());
        assertArrayEquals(value.getGzippedContent(), loaded.getGzippedContent());
    }
}