### Question:
Doctor extends Profession { public Diagnose heal(Patient patient) { return patient.diagnose; } Doctor(String name); String threat(Patient patient); Diagnose heal(Patient patient); void diagnosed(Patient patient, String disease, int duration, String treatment);  }### Answer:
@Test public void ifDocHealPitThenPitReturnDiagnose() { Diagnose diagnose = new Diagnose("plague", 30, "nothing"); pit.diagnose = diagnose; Diagnose result = doc.heal(pit); assertThat(result, is(diagnose)); }