@Test
    void verifyServiceAttribute() throws Throwable {
        val svc = RegisteredServiceTestUtils.getService("https://sso.shibboleth.org/idp/Authn/External");
        val entityId = "https://service.example.com";
        svc.getAttributes().put(SamlProtocolConstants.PARAMETER_ENTITY_ID, List.of(entityId));
        assertTrue(shibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.supports(svc));
        val result = shibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.resolveServiceFrom(svc);
        assertEquals(entityId, result.getId());
    }
This is {@link ShibbolethIdPEntityIdAuthenticationServiceSelectionStrategyTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-shibboleth/src/test/java/org/apereo/cas/support/saml/ShibbolethIdPEntityIdAuthenticationServiceSelectionStrategyTests.java