@Test
public void toHexWithZerostWithZerosTest() {

    assertEquals(toHexWithZeros((byte) 0), "00");
    assertEquals(toHexWithZeros((byte) 1), "01");
    assertEquals(toHexWithZeros((byte) 15), "0f");
    assertEquals(toHexWithZeros((byte) 127), "7f");
    assertEquals(toHexWithZeros((byte) 0xcc), "cc");
    // arrays
    assertEquals(toHexWithZeros(new byte[]{(byte) 0x01}), "01");
    assertEquals(toHexWithZeros(new byte[]{(byte) 0xcc}), "cc");
    assertEquals(toHexWithZeros(new byte[]{0x00, 0x00}), "0000");
    assertEquals(toHexWithZeros(new byte[]{0x01, 0x1f, (byte) 0xcc}), "011fcc");
    assertEquals(toHexWithZeros(new byte[]{0x01, 0x1f, 0x00}), "011f00");
    assertEquals(toHexWithZeros(new byte[]{0x00, 0x01, 0x1f, 0x01, 0x00, 0x00}), "00011f010000");
}