@Test
        void verifyBadHttpRequest() throws Throwable {
            val registeredService = new SamlRegisteredService();
            registeredService.setId(100);
            registeredService.setName("SAML");
            registeredService.setServiceId("https://sp.testshib.org/shibboleth-sp");
            registeredService.setMetadataLocation("classpath:metadata/testshib-providers.xml");

            val policy = new EduPersonTargetedIdAttributeReleasePolicy();
            val releasePolicyContext = RegisteredServiceAttributeReleasePolicyContext.builder()
                .registeredService(registeredService)
                .applicationContext(applicationContext)
                .service(CoreAuthenticationTestUtils.getService("https://sp.cas.org"))
                .principal(CoreAuthenticationTestUtils.getPrincipal("casuser"))
                .build();
            val attributes = policy.getAttributes(releasePolicyContext);
            assertTrue(attributes.isEmpty());
        }
This is {@link SamlRegisteredServiceAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/SamlRegisteredServiceAttributeReleasePolicyTests.java