@Test public void testToString() { car.setMake("Passat"); car.setManufacturer("Volkswagen"); car.setId("ABC-123"); assertEquals("Car [make=Passat, manufacturer=Volkswagen, id=ABC-123]", car.toString()); }
public String toString() { return "Car [" + "make=" + make + ", manufacturer=" + manufacturer + ", id=" + id + "]"; }
Car { public String toString() { return "Car [" + "make=" + make + ", manufacturer=" + manufacturer + ", id=" + id + "]"; } }
Car { public String toString() { return "Car [" + "make=" + make + ", manufacturer=" + manufacturer + ", id=" + id + "]"; }  }
Car { public String toString() { return "Car [" + "make=" + make + ", manufacturer=" + manufacturer + ", id=" + id + "]"; }  String getMake(); @XmlElement void setMake(String make); String getManufacturer(); @XmlElement void setManufacturer(String manufacturer); String getId(); @XmlAttribute void setId(String id); String toString(); }
Car { public String toString() { return "Car [" + "make=" + make + ", manufacturer=" + manufacturer + ", id=" + id + "]"; }  String getMake(); @XmlElement void setMake(String make); String getManufacturer(); @XmlElement void setManufacturer(String manufacturer); String getId(); @XmlAttribute void setId(String id); String toString();  }