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

        String s1 = new String(compressor.uncompress(bs, 0, bs.length), "utf-8");
        Assert.assertEquals(s, s1);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/snappy/SnappyRpcCompressorTest.java