@Test
public void testHexStringToByteArray() {

    System.out.println("hexStringToByteArray");
    String s = "FF124A";
    byte[] expResult = new byte[] {(byte)0xFF, (byte)0x12, (byte)0x4A};
    byte[] result = Util.hexStringToByteArray(s);
    assertEquals(expResult.length, 3);
    assertEquals(expResult[0], result[0]);
    assertEquals(expResult[1], result[1]);
    assertEquals(expResult[2], result[2]);
}