### Question:
MacAddress { public byte[] toByteArray() { final byte[] tmp = new byte[LENGTH]; System.arraycopy(array, 0, tmp, 0, LENGTH); return tmp; } 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 fromStringToByteArray() { assertArrayEquals(MAC_BYTES, new MacAddress(MAC_DEC_STRING).toByteArray()); assertArrayEquals(MAC_BYTES, new MacAddress(MAC_HEX_STRING).toByteArray()); assertArrayEquals(MAC_BYTES, new MacAddress(MAC_BIN_STRING).toByteArray()); }
@Test public void fromLongToByteArray() { assertArrayEquals(MAC_BYTES, new MacAddress(MAC_LONG).toByteArray()); }
@Test public void fromByteArrayToByteArray() { assertArrayEquals(MAC_BYTES, new MacAddress(MAC_BYTES).toByteArray()); }