### Question:
MacAddress { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final MacAddress that = (MacAddress) o; return Arrays.equals(array, that.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 equalsTest() { assertTrue(new MacAddress(MAC_BYTES).equals(new MacAddress(MAC_BYTES))); assertTrue(new MacAddress(MAC_HEX_STRING).equals(new MacAddress(MAC_BYTES))); assertTrue(new MacAddress(MAC_DEC_STRING).equals(new MacAddress(MAC_BYTES))); assertTrue(new MacAddress(MAC_BIN_STRING).equals(new MacAddress(MAC_BYTES))); assertFalse(new MacAddress(MAC_BYTES).equals(new MacAddress(MAC_BYTES_OTHER))); assertFalse(new MacAddress(MAC_HEX_STRING).equals(new MacAddress(MAC_BYTES_OTHER))); assertFalse(new MacAddress(MAC_DEC_STRING).equals(new MacAddress(MAC_BYTES_OTHER))); assertFalse(new MacAddress(MAC_BIN_STRING).equals(new MacAddress(MAC_BYTES_OTHER))); }