@Test
public void testToHexString() {

    assertEquals("", toHexString(null));
    assertEquals("", toHexString(new byte[0]));
    assertEquals("abf0", toHexString(new byte[] {(byte) 0xab, (byte) 0xf0}));
}