@Test
    void verifyRepositoryCaching() {
        val person1 = cachingAttributeRepository.getPerson("casuser");
        assertEquals("casuser", person1.getName());
        assertEquals(4, person1.getAttributes().size());

        /*
         * The second call should not
         * go out to the repositories again
         */
        val person2 = cachingAttributeRepository.getPerson("casuser");
        assertEquals(4, person2.getAttributes().size());
    }
This is {@link CachingAttributeRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/CachingAttributeRepositoryTests.java