@Override
    public void clear() {
        RFuture<Void> future = clearAsync();
        sync(future);
    }
@Test
    public void testClear() throws Exception {
        URL configUrl = getClass().getResource("redisson-jcache.yaml");
        Config cfg = Config.fromYAML(configUrl);

        Configuration<String, String> config = RedissonConfiguration.fromConfig(cfg);
        Cache<String, String> cache = Caching.getCachingProvider().getCacheManager()
                .createCache("test", config);

        cache.put("1", "2");
        cache.clear();
        assertThat(cache.get("1")).isNull();

        cache.close();
    }