public static Stream<Arguments> getAuditReturnValueParameters() {
        val authentication = RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString());
        val ticketGrantingTicket = new TicketGrantingTicketImpl(UUID.randomUUID().toString(), authentication, NeverExpiresExpirationPolicy.INSTANCE);
        val authenticationResult = CoreAuthenticationTestUtils.getAuthenticationResult(authentication);
        val auditableContext = AuditableContext.builder()
            .authentication(authentication)
            .authenticationResult(authenticationResult)
            .build();
        val assertion = mock(Assertion.class);
        when(assertion.getPrimaryAuthentication()).thenReturn(authentication);

        val auditableEntity = new AuditableEntity() {
            @Override
            public String getAuditablePrincipal() {
                return UUID.randomUUID().toString();
            }
        };

        return Stream.of(
            arguments(ticketGrantingTicket),
            arguments(auditableContext),
            arguments(ticketGrantingTicket),
            arguments(assertion),
            arguments(auditableEntity)
        );
    }
This is {@link DefaultAuditPrincipalResolverTests}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-audit/src/test/java/org/apereo/cas/audit/spi/principal/DefaultAuditPrincipalResolverTests.java