@Test
        void verifyAssertionWithDefaultIssuer() throws Throwable {
            val service = getSamlRegisteredServiceForTestShib();
            val adaptor = SamlRegisteredServiceMetadataAdaptor.get(samlRegisteredServiceCachingMetadataResolver, service, service.getServiceId())
                .orElseThrow(() -> new AssertionError("Unable to locate metadata for %s".formatted(service.getServiceId())));

            val buildContext = SamlProfileBuilderContext.builder()
                .samlRequest(getAuthnRequestFor(service))
                .httpRequest(new MockHttpServletRequest())
                .httpResponse(new MockHttpServletResponse())
                .authenticatedAssertion(Optional.of(getAssertion()))
                .registeredService(service)
                .adaptor(adaptor)
                .binding(SAMLConstants.SAML2_POST_BINDING_URI)
                .build();

            val assertion = samlProfileSamlAssertionBuilder.build(buildContext);
            assertEquals(casProperties.getAuthn().getSamlIdp().getCore().getEntityId(),
                SamlIdPUtils.getIssuerFromSamlObject(assertion));
        }
This is {@link SamlProfileSamlAssertionBuilderTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/builders/assertion/SamlProfileSamlAssertionBuilderTests.java