protected AbstractPrincipalAttributesRepository getPrincipalAttributesRepository(final String unit, final long duration) {
        return new CachingPrincipalAttributesRepository(unit, duration);
    }
Handles tests for {@link CachingPrincipalAttributesRepository}.

@author Misagh Moayyed
@since 4.1
core/cas-server-core/src/test/java/org/apereo/cas/authentication/principal/cache/CachingPrincipalAttributesRepositoryTests.java