Exemplo n.º 1
0
 @Test
 public void convertByteArrayToHexString() throws Exception {
   final byte[] bytes =
       new byte[] {(byte) 0x00, (byte) 0x01, (byte) 0xAB, (byte) 0xCD, (byte) 0xEF};
   assertEquals("0001abcdef", AsciiUtils.byteArrayToHexString(bytes));
 }