@Test
    void verifyAction() {
        val resolver = new SamlRequestAuditResourceResolver();
        val authnRequest = mock(AuthnRequest.class);
        val issuer = mock(Issuer.class);
        when(issuer.getValue()).thenReturn("https://idp.example.org");
        when(authnRequest.getIssuer()).thenReturn(issuer);
        when(authnRequest.getProtocolBinding()).thenReturn("ProtocolBinding");
        val pair = Pair.of(authnRequest, null);
        assertTrue(resolver.resolveFrom(mock(JoinPoint.class), pair).length > 0);
        assertTrue(resolver.resolveFrom(mock(JoinPoint.class), authnRequest).length > 0);
    }
This is {@link SamlRequestAuditResourceResolverTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-web/src/test/java/org/apereo/cas/support/saml/web/idp/audit/SamlRequestAuditResourceResolverTests.java