@Test
void hex() {

    assertThat(Encodings.hex(new byte[]{0, 1, 0xf})).isEqualTo("00010F");
    assertThat(Encodings.hex(new byte[]{-128, -1, 127})).isEqualTo("80FF7F");
    assertThat(Encodings.hex(new byte[0])).isEqualTo("");
}