private static JoinPoint mockJoinPointWithFirstArg(final Object argument) {
        val jp = mock(JoinPoint.class);
        when(jp.getArgs()).thenReturn(new Object[]{argument});
        return jp;
    }
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