@Test
    public void verifyHostComparison() {
        val xml = "<samlp:LogoutResponse xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" " +
            "xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" " +
            "ID=\"_6c3737282f007720e736f0f4028feed8cb9b40291c\" Version=\"2.0\" " +
            "IssueInstant=\"" + ZonedDateTime.now(ZoneOffset.UTC)
            + "\" Destination=\"http://sp.example.com/demo1/logout?x=1000%26y=1234\" " +
            "InResponseTo=\"ONELOGIN_21df91a89767879fc0f7df6a1490c6000c81644d\">" +
            "  <saml:Issuer>http://idp.example.com/metadata.php</saml:Issuer>" +
            "  <samlp:Status>" +
            "    <samlp:StatusCode Value=\"urn:oasis:names:tc:SAML:2.0:status:Success\"/>" +
            "  </samlp:Status>" +
            "</samlp:LogoutResponse>";

        try {
            val webContext = getMockWebContext();
            val context = getSaml2MessageContext(webContext, xml);
            SAML2ResponseValidator validator = new SAML2LogoutValidator(
                getTrustEngine(),
                mock(Decrypter.class),
                mock(SessionLogoutHandler.class),
                mock(ReplayCacheProvider.class),
                new ExcludingParametersURIComparator()
            );
            validator.validate(context);
        } catch (final Exception e) {
            fail(e.getMessage());
        }
    }
This is {@link SAML2LogoutValidatorTests}.

@author Misagh Moayyed
@since 5.0.0
pac4j-saml/src/test/java/org/pac4j/saml/logout/impl/SAML2LogoutValidatorTests.java