@Test
    void verifyNoSurrogateAction() {
        assertTrue(surrogateAuditPrincipalIdProvider.getOrder() > 0);
        val auth = CoreAuthenticationTestUtils.getAuthentication(CoreAuthenticationTestUtils.getPrincipal());
        assertEquals("test",
            surrogateAuditPrincipalIdProvider.getPrincipalIdFrom(mock(JoinPoint.class),
                auth, new Object(), new SurrogateAuthenticationException("error")));
    }
This is {@link SurrogateAuditPrincipalIdProviderTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-surrogate-authentication/src/test/java/org/apereo/cas/authentication/audit/SurrogateAuditPrincipalIdProviderTests.java