@Test
public void malformedHex() {

    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> HexArray.fromHex("0g"));
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> HexArray.fromHex("0A"));
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> HexArray.fromHex("dupa"));
}