@Test
public void testEquals() {

    HexArray hexArray = new HexArray(new byte[]{1, 2, 3, 4});
    assertEquals(hexArray, new HexArray(new byte[]{1, 2, 3, 4}));
    assertNotEquals(hexArray, new HexArray(new byte[]{1}));
    assertNotEquals(hexArray, "");
    assertNotEquals(hexArray, null);
    assertEquals(hexArray.hashCode(), new HexArray(new byte[]{1, 2, 3, 4}).hashCode());
}