@Test
    void verifyJsonCredential() {
        val jp = mock(JoinPoint.class);
        val cred = CoreAuthenticationTestUtils.getCredentialsWithDifferentUsernameAndPassword("casuser", "p@ssword");
        when(jp.getArgs()).thenReturn(new Object[]{cred});
        assertNotNull(credentialsAsFirstParameterResourceResolver.resolveFrom(jp, new Object()));
    }
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