@Test
        void verifyAssertionWithServiceMetadataAndIssuer() throws Throwable {
            val service = getSamlRegisteredServiceFor("https://cassp.example.org");
            service.setId(1000);
            service.setName("ObjectSignerTest");

            val adaptor = SamlRegisteredServiceMetadataAdaptor
                .get(samlRegisteredServiceCachingMetadataResolver, service, service.getServiceId()).get();

            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("https://cas.example.org/customidp", 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