@Test
public void testByteArrayToInt() throws  Exception {

    byte[] data = new byte[4];
    data[0] = 0x00;
    data[1] = 0x00;
    data[2] = (byte) 0x98;
    data[3] = (byte) 0xF2;
    int val = EbtsUtils.byteArrayToInt(data);
    assertEquals(39154,val);
    log.debug("{}",val);
    data = new byte[1];
    data[0] = (byte) 0xFF;
    val = EbtsUtils.byteArrayToInt(data);
    log.debug("{}",val);
    data = new byte[2];
    data[0] = (byte) 0xFF;
    data[1] = (byte) 0xFF;
    val = EbtsUtils.byteArrayToInt(data);
    log.debug("{}",val);
}