### Question:
ShopItem { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } ShopItem shopItem = (ShopItem) obj; return getPriceItem() == shopItem.getPriceItem() && getColorItem() == shopItem.getColorItem(); } ShopItem(ColorsShop color, int price);  ShopItem(ColorsShop color, int price, boolean owned); static ShopItemComparator getComparator(); ColorsShop getColorItem(); int getPriceItem(); boolean getOwned(); LinearLayout getLayout(); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void equalsTest() { ShopItem shopItem1 = new ShopItem(ColorsShop.BLUE, 10, false); ShopItem shopItem2 = new ShopItem(ColorsShop.BLUE, 10, true); assertThat(shopItem1, is(shopItem2)); }