### Question:
MacAddress { @Override public int hashCode() { return Arrays.hashCode(array); } MacAddress(final long macAddress);  MacAddress(final byte[] macAddress);  MacAddress(final String macAddress); byte[] toByteArray(); long toLong(); @Override String toString(); String toHexString(); String toDecString(); String toBinString(); MacAddress to16BitMacAddress(); @Override boolean equals(final Object o); @Override int hashCode(); static final MacAddress HIGHEST_MAC_ADDRESS; static final MacAddress LOWEST_MAC_ADDRESS; }### Answer:
@Test public void hashCodeTest() { assertEquals(new MacAddress(MAC_BYTES).hashCode(), new MacAddress(MAC_BYTES).hashCode()); assertEquals(new MacAddress(MAC_HEX_STRING).hashCode(), new MacAddress(MAC_BYTES).hashCode()); assertEquals(new MacAddress(MAC_DEC_STRING).hashCode(), new MacAddress(MAC_BYTES).hashCode()); assertEquals(new MacAddress(MAC_BIN_STRING).hashCode(), new MacAddress(MAC_BYTES).hashCode()); assertThat(new MacAddress(MAC_BYTES).hashCode(), not(equalTo(new MacAddress(MAC_BYTES_OTHER).hashCode()))); assertThat(new MacAddress(MAC_HEX_STRING).hashCode(), not(equalTo(new MacAddress(MAC_BYTES_OTHER).hashCode()))); assertThat(new MacAddress(MAC_DEC_STRING).hashCode(), not(equalTo(new MacAddress(MAC_BYTES_OTHER).hashCode()))); assertThat(new MacAddress(MAC_BIN_STRING).hashCode(), not(equalTo(new MacAddress(MAC_BYTES_OTHER).hashCode()))); }