### Question:
RedisCacheProvider implements CacheProvider<String> { @Override public Boolean put(String key, CacheEntry<String> cacheEntry) throws CacheProviderException { assert pool != null; try (Jedis jedis = pool.getResource()) { jedis.set(key, mapper.writeValueAsString(cacheEntry)); return true; } catch (Exception e) { throw new CacheProviderException(e); } } RedisCacheProvider(JedisSentinelPool pool, ObjectMapper mapper); @Override CacheEntry<String> get(String key); @Override Boolean put(String key, CacheEntry<String> cacheEntry);  }### Answer:
@Test public void shouldSerialize() throws Exception { String key = "TEST-KEY"; cacheProvider.put(key, cacheEntry); verify(jedis).set(key, cacheEntryAsString); }