@Test
    void verifyOperation() {
        val chain = new ChainingAuditPrincipalIdProvider(new ArrayList<>());
        chain.addProvider(new DefaultAuditPrincipalIdProvider());
        assertTrue(chain.supports(mock(JoinPoint.class),
            RegisteredServiceTestUtils.getAuthentication(), new Object(), null));
        val principal = chain.getPrincipalIdFrom(mock(JoinPoint.class),
            RegisteredServiceTestUtils.getAuthentication(), new Object(), null);
        assertEquals("test", principal);
    }
This is {@link ChainingAuditPrincipalIdProviderTests}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-audit-api/src/test/java/org/apereo/cas/audit/spi/principal/ChainingAuditPrincipalIdProviderTests.java