@Test
    void verifyDefaults() {
        val mgr = DistributedCacheManager.noOp();

        assertNull(mgr.get("key"));
        assertNotNull(mgr.getAll());
        assertNotNull(mgr.findAll(distributedCacheObject -> true));
        assertNotNull(mgr.getName());
        assertFalse(mgr.contains("key"));
        assertFalse(mgr.find(distributedCacheObject -> true).isPresent());

        val id = new PublisherIdentifier();
        val object = DistributedCacheObject.<String>builder()
            .value("value")
            .publisherIdentifier(id)
            .build();

        assertDoesNotThrow(() -> mgr.set("key", object, true));
        assertDoesNotThrow(mgr::clear);
        assertDoesNotThrow(() -> mgr.set("key", object, true));
        assertDoesNotThrow(() -> mgr.remove("key", object, true));
        assertNotNull(mgr.update("key", object, true));
        mgr.close();
    }
This is {@link DistributedCacheManagerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/cache/DistributedCacheManagerTests.java