ItemDetails { public void setQuantity(int quantity) { this.quantity = quantity; } 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 testSetQuantity() throws Exception { itemDetails.setQuantity(exampleNumber); assertEquals(itemDetails.getQuantity(), exampleNumber); }