@Test
    void verifyOperation() {
        val resolver = new ProtocolSpecificationValidationAuditResourceResolver(casProperties);
        val assertion = mock(Assertion.class);
        val service = RegisteredServiceTestUtils.getService();
        when(assertion.getService()).thenReturn(service);
        when(assertion.getPrimaryAuthentication()).thenReturn(CoreAuthenticationTestUtils.getAuthentication());
        resolver.setAuditFormat(AuditTrailManager.AuditFormats.JSON);
        val jp = mock(JoinPoint.class);
        when(jp.getArgs()).thenReturn(new Object[]{new MockHttpServletRequest(), assertion});
        val results = resolver.resolveFrom(jp, new Object());
        assertTrue(results.length > 0);
    }
This is {@link ProtocolSpecificationValidationAuditResourceResolverTests}.

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