@Override
    public void destroy() {
        decoder.destroy();
    }
@Test
    void testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() throws UnsupportedEncodingException {
        StringBuffer sb = new StringBuffer();
        byte[] bodyBytes = ("aaaa/bbbb=aaaaaaaaaa" +
                "aaaaaaaaaaaaaaaaaaaaaaaaaa" +
                "aaaaaaaaaaaaaaaaaaaaaaaaaa" +
                "aaaaaaaaaaaaaaaaaaa").getBytes(CharsetUtil.US_ASCII);
        ByteBuf content = Unpooled.directBuffer(bodyBytes.length);
        content.writeBytes(bodyBytes);

        FullHttpRequest req =
                new DefaultFullHttpRequest(
                HttpVersion.HTTP_1_1,
                HttpMethod.POST,
                "/",
                content);
        HttpPostStandardRequestDecoder decoder = null;
        try {
            decoder = new HttpPostStandardRequestDecoder(
                    new DefaultHttpDataFactory(true),
                    req
            );
            decoder.destroy();
        } catch (HttpPostRequestDecoder.ErrorDataDecoderException e) {
            if (null != decoder) {
                decoder.destroy();
            }
            fail("Was not expecting an exception");
        } finally {
            assertTrue(req.release());
        }
    }