@Test
    void verifyQueryStrings() throws Throwable {
        val svc = RegisteredServiceTestUtils.getService("https://www.example.org?name=value");
        val context = MockRequestContext.create(applicationContext);
        context.setQueryString("entityId=https://idp.example.org");

        var result = shibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.resolveServiceFrom(svc);
        assertEquals("https://idp.example.org", result.getId());

        val svc2 = RegisteredServiceTestUtils.getService("_ _");
        result = shibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.resolveServiceFrom(svc2);
        assertEquals("_ _", 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