@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);
}