### Question:
Icon { @Override public boolean equals(@Nullable Object object) { if (this == object) { return true; } if (object == null || getClass() != object.getClass()) { return false; } Icon icon = (Icon) object; return mBitmap.equals(icon.mBitmap) && mId.equals(icon.mId); } Icon(String id, Bitmap bitmap); String getId(); Bitmap getBitmap(); float getScale(); @NonNull byte[] toBytes(); @Override boolean equals(@Nullable Object object); @Override int hashCode();  }### Answer:
@Test public void testEquals() { Icon icon1 = IconFactory.recreate("test", bitmap); Icon icon2 = IconFactory.recreate("test", bitmap); assertEquals("icons should not match", icon1, icon2); }