### Question:
ComputerParcelable implements Parcelable { public boolean equals(Object obj) { return obj instanceof ComputerParcelable && (this == obj || (this.name.equals(((ComputerParcelable) obj).name) && this.addr.equals(((ComputerParcelable) obj).addr))); } ComputerParcelable(String str, String str2); private  ComputerParcelable(Parcel parcel); String toString(); int describeContents(); void writeToParcel(Parcel parcel, int i); boolean equals(Object obj); int hashCode(); final String addr; final String name; static final Creator<ComputerParcelable> CREATOR; }### Answer:
@Test public void testObjectEquals() { ComputerParcelable computerParcelable = new ComputerParcelable("com1", "1"); Object object = new ComputerParcelable("com1", "1"); assertTrue(computerParcelable.equals(object)); }
@Test public void testObjectNotEqualsName() { ComputerParcelable computerParcelable = new ComputerParcelable("com1", "1"); Object object = new ComputerParcelable("com2", "1"); assertFalse(computerParcelable.equals(object)); }
@Test public void testObjectNotEqualsAddr() { ComputerParcelable computerParcelable = new ComputerParcelable("com1", "1"); Object object = new ComputerParcelable("com1", "2"); assertFalse(computerParcelable.equals(object)); }
@Test public void testObjectNotEqualsTwo() { ComputerParcelable computerParcelable = new ComputerParcelable("com1", "1"); Object object = new ComputerParcelable("com2", "2"); assertFalse(computerParcelable.equals(object)); }