private void validateResponse(String xml) {
        val webContext = getMockWebContext();
        val context = getSaml2MessageContext(webContext, xml);
        val validator = new SAML2LogoutValidator(
            getTrustEngine(),
            mock(Decrypter.class),
            mock(SessionLogoutHandler.class),
            mock(ReplayCacheProvider.class),
            new ExcludingParametersURIComparator()
        );

        try {
            validator.validate(context);
            fail("Validation should have failed, because response status PartialLogout is not accepted as success by default.");
        }
        catch(SAMLException expectedException) {
            assertNotNull(expectedException);
        }

        validator.setPartialLogoutTreatedAsSuccess(true);
        validator.validate(context);
    }
This is {@link SAML2LogoutValidatorTests}.

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