@Test
    void verifyEntityIdParam() {
        assertNotNull(samlIdPServicesManagerRegisteredServiceLocator);
        assertEquals(Ordered.HIGHEST_PRECEDENCE, samlIdPServicesManagerRegisteredServiceLocator.getOrder());
        val service1 = RegisteredServiceTestUtils.getRegisteredService(".+");
        service1.setEvaluationOrder(10);

        val service2 = getSamlRegisteredServiceFor(false, false, false, ".+");
        service2.setEvaluationOrder(9);

        val candidateServices = CollectionUtils.wrapList(service1, service2);
        Collections.sort(candidateServices);

        val service = webApplicationServiceFactory.createService("https://sp.testshib.org/shibboleth-sp");
        service.setAttributes(Map.of(SamlProtocolConstants.PARAMETER_ENTITY_ID, List.of(service.getId())));

        val result = samlIdPServicesManagerRegisteredServiceLocator.locate(
            candidateServices, service);
        assertNotNull(result);
    }
This is {@link SamlIdPServicesManagerRegisteredServiceLocatorTests}.

@author Misagh Moayyed
@author Hayden Sartoris
@since 6.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/SamlIdPServicesManagerRegisteredServiceLocatorTests.java