ItemDetails { public void setName(String name) { this.name = name; } 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 testSetName() throws Exception { itemDetails.setName(exampleText); assertEquals(itemDetails.getName(), exampleText); }