@Test
        void verifySupportOperations() {
            val request = new MockHttpServletRequest();
            val protocolVersions = Set.of(CasProtocolVersions.CAS10, CasProtocolVersions.CAS20);

            val spec = new CasProtocolVersionValidationSpecification(protocolVersions, tenantExtractor);
            val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
            when(registeredService.getSupportedProtocols()).thenReturn(Set.of(CasProtocolVersions.CAS20));

            val assertion = CoreValidationTestUtils.getAssertion(registeredService);
            assertFalse(spec.isSatisfiedBy(assertion, request));

            when(registeredService.getSupportedProtocols()).thenReturn(protocolVersions);
            assertTrue(spec.isSatisfiedBy(assertion, request));

            when(registeredService.getSupportedProtocols()).thenReturn(Set.of());
            assertTrue(spec.isSatisfiedBy(assertion, request));
        }
This is {@link CasProtocolVersionValidationSpecificationTests}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-validation/src/test/java/org/apereo/cas/validation/CasProtocolVersionValidationSpecificationTests.java