@Test
    public void bytesToInt() {

        int i = CodecUtils.bytesToInt(new byte[] { 0, 0, 0, 0 });
        Assert.assertEquals(0, i);

        i = CodecUtils.bytesToInt(new byte[] { 0, 0, 3, -24 });
        Assert.assertEquals(1000, i);

        int s = CodecUtils.bytesToInt(new byte[] { 1, 0, 0, 2 });
        Assert.assertEquals(s, 16777218);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/common/src/test/java/com/alipay/sofa/rpc/common/utils/CodecUtilsTest.java