### Question:
Region implements Parcelable, Serializable { public String getBluetoothAddress() { return mBluetoothAddress; } Region(String uniqueId, Identifier id1, Identifier id2, Identifier id3);  Region(String uniqueId, List<Identifier> identifiers);  Region(String uniqueId, List<Identifier> identifiers, String bluetoothAddress);  Region(String uniqueId, String bluetoothAddress); protected  Region(Parcel in); Identifier getId1(); Identifier getId2(); Identifier getId3(); Identifier getIdentifier(int i); String getUniqueId(); String getBluetoothAddress(); boolean matchesBeacon(Beacon beacon); @Override int hashCode(); @Override boolean equals(Object other); boolean hasSameIdentifiers(Region region); String toString(); int describeContents(); void writeToParcel(Parcel out, int flags); @Override @Deprecated Region clone(); static final Parcelable.Creator<Region> CREATOR; }### Answer:
@Test public void testCanSerializeWithMac() throws Exception { org.robolectric.shadows.ShadowLog.stream = System.err; Region region = new Region("myRegion", "1B:2a:03:4C:6E:9F"); byte[] serializedRegion = convertToBytes(region); Region region2 = (Region) convertFromBytes(serializedRegion); assertEquals("Right number of identifiers after deserialization", 0, region2.mIdentifiers.size()); assertEquals("ac is same after deserialization", region.getBluetoothAddress(), region2.getBluetoothAddress()); }