@Test
    public void testBadUnCompressSpecifySize() throws UnsupportedEncodingException {
        SnappyRpcCompressor compressor = new SnappyRpcCompressor();
        String s = "xxxxasdasdasd0as8d0asdkmasldjalsd";
        byte[] bs = compressor.compress(s.getBytes("utf-8"));
        Assert.assertNotNull(s);

        try {
            String s1 = new String(compressor.uncompress(bs, 0, bs.length + 1), "utf-8");
            Assert.fail();
        } catch (ArrayIndexOutOfBoundsException e) {
            Assert.assertTrue(true);
        }
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/snappy/SnappyRpcCompressorTest.java