Treatment implements Named { public String getName() { return name; } Treatment(String name);  Treatment(String name, String description); String getName(); String getDescription(); void setDescription(String description); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testValidTreatmentName() throws ValidationException { String name = "abc"; final Treatment treatment = new Treatment(name, "a treatment with a valid name"); assertEquals(treatment.getName(), name); }