public static byte[] compress(final byte[] src) throws IOException {
        byte[] result;
        ByteArrayOutputStream bos = new ByteArrayOutputStream(src.length);
        GZIPOutputStream gos = new GZIPOutputStream(bos);
        try {
            gos.write(src);
            gos.finish();
            result = bos.toByteArray();
        } finally {
            IOUtil.close(bos, gos);
        }
        return result;
    }
@Test
    @DisabledOnJre({JRE.JAVA_8, JRE.JAVA_11})
    public void testCompress2() throws IOException {
        Assertions.assertArrayEquals(compressedBytes2,
                CompressUtil.compress(originBytes));
    }