### Question:
Icon { @Override public int hashCode() { int result = 0; if (mBitmap != null) { result = mBitmap.hashCode(); } if (mId != null) { result = 31 * result + mId.hashCode(); } return result; } 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 testHashcode() { Icon icon = IconFactory.recreate("test", bitmap); long expectedHashcode = 31 * bitmap.hashCode() + "test".hashCode(); assertEquals("hashcode should match", expectedHashcode, icon.hashCode()); }