ItemDetails { public void setPrice(double price) { this.price = price; } ItemDetails();  ItemDetails(String id, String name, double price, int quantity); String getId(); void setId(String id); String getName(); void setName(String name); double getPrice(); void setPrice(double price); int getQuantity(); void setQuantity(int quantity);  }
@Test public void testSetPrice() throws Exception { itemDetails.setPrice(examplePrice); assertEquals(Double.valueOf(itemDetails.getPrice()), Double.valueOf(itemDetails.getPrice())); }