@Test
        void verifyOperationByAssertion() throws Throwable {
            val service = getSamlRegisteredServiceForTestShib();
            val authnRequest = getAuthnRequestFor(service);

            val classRef = mock(AuthnContextClassRef.class);
            when(classRef.getURI()).thenReturn("some-context");
            val context = mock(RequestedAuthnContext.class);
            when(context.getAuthnContextClassRefs()).thenReturn(List.of(classRef));
            authnRequest.setRequestedAuthnContext(context);
            val adaptor = SamlRegisteredServiceMetadataAdaptor.get(
                samlRegisteredServiceCachingMetadataResolver, service, authnRequest);

            val buildContext = SamlProfileBuilderContext.builder()
                .samlRequest(authnRequest)
                .authenticatedAssertion(Optional.of(getAssertion()))
                .registeredService(service)
                .adaptor(adaptor.get())
                .build();
            val result = defaultAuthnContextClassRefBuilder.build(buildContext);
            assertEquals(AuthnContext.PPT_AUTHN_CTX, result.getAuthnContextClassRef().getURI());
        }
This is {@link SamlProfileAuthnContextClassRefBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/builders/authn/SamlProfileAuthnContextClassRefBuilderTests.java