@Test
    void verifyPredicateFails() throws Throwable {
        val filter = new MetadataEntityAttributesAttributeReleasePolicy();
        filter.setEntityAttribute("entity-attribute");
        filter.setEntityAttributeFormat("entity-format");
        filter.setEntityAttributeValues(CollectionUtils.wrapSet("one", "two"));

        val registeredService = SamlIdPTestUtils.getSamlRegisteredService();
        registeredService.setAttributeReleasePolicy(filter);
        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(registeredService)
            .applicationContext(applicationContext)
            .service(CoreAuthenticationTestUtils.getService())
            .principal(CoreAuthenticationTestUtils.getPrincipal("casuser",
                CollectionUtils.wrap("givenName", UUID.randomUUID().toString())))
            .build();
        val attributes = filter.getAttributes(context);
        assertTrue(attributes.isEmpty());
    }
This is {@link MetadataEntityAttributesAttributeReleasePolicyTests}.

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