private MockHttpServletRequest buildHttpRequest() throws Exception {
        val request = new MockHttpServletRequest();
        val tgt = new MockTicketGrantingTicket("casuser");
        request.addHeader(casProperties.getTgc().getName(), tgt.getId());
        ticketRegistry.addTicket(tgt);
        return request;
    }
This is {@link SamlProfileSaml2ResponseBuilderTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/builders/response/SamlProfileSaml2ResponseBuilderTests.java