@Test
    public void testEncodeDecode() throws Exception {
        val webContext = MockWebContext.create();

        val xmlObject = XMLObjectSupport.unmarshallFromReader(Configuration.getParserPool(), new StringReader(AUTHN_REQUEST));

        val encoder =
            new Pac4jHTTPRedirectDeflateEncoder(new DefaultPac4jSAMLResponse(webContext), false);
        val message = encoder.deflateAndBase64Encode((SAMLObject) xmlObject);

        webContext.addRequestParameter("SAMLResponse", message);
        val decoder = new Pac4jHTTPRedirectDeflateDecoder(new CallContext(webContext, new MockSessionStore()));
        decoder.setParserPool(Configuration.getParserPool());
        decoder.initialize();
        decoder.decode();

        assertTrue(decoder.getMessageContext().getMessage() instanceof AuthnRequestImpl);
    }
Tests {@link Pac4jHTTPRedirectDeflateDecoder}.

@author Jerome Leleu
@since 3.4.0
pac4j-saml/src/test/java/org/pac4j/saml/transport/Pac4jHTTPRedirectDeflateDecoderTest.java