@Test
    void verifyException() {
        val jp = mock(JoinPoint.class);
        when(jp.getArgs()).thenReturn(new Object[]{CoreAuthenticationTestUtils.getCredentialsWithDifferentUsernameAndPassword()});
        assertNotNull(credentialsAsFirstParameterResourceResolver.resolveFrom(jp, new AuthenticationException()));
    }
This is {@link CredentialsAsFirstParameterResourceResolverTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-audit/src/test/java/org/apereo/cas/audit/spi/CredentialsAsFirstParameterResourceResolverTests.java