@Test
    void testFindingAnInsertedValue() {
        cache.put("foo", "FOO");
        Optional<String> foundObject = cache.get("foo", String.class);

        assertThat(foundObject.isPresent()).as("When an object in the cache is retrieved, it can be found").isTrue();
        assertThat(foundObject.get())
            .as("When we put a String in to the cache and retrieve it, the value is the same")
            .isEqualTo("FOO");
    }
Integration test for Redis-backed cache implementation.
examples/redis-backed-cache/src/test/java/RedisBackedCacheTest.java