@Test
    void verifyNullValue() {
        val o = DistributedCacheObject.<String>builder()
            .value("objectValue")
            .publisherIdentifier(new PublisherIdentifier())
            .build();
        assertTrue(o.getProperties().isEmpty());
        o.getProperties().put("key", null);
        o.getProperties().put("key2", "12.54");
        assertNull(o.getProperty("nothing", String.class));
        assertNull(o.getProperty("key", String.class));
        assertThrows(ClassCastException.class, () -> o.getProperty("key2", Long.class));
    }
This is {@link DistributedCacheObjectTests}.

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