### Question:
Doctor extends Profession { public String threat(Patient patient) { return this.profession + " " + this.name + " threat " + patient.name; } 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 ifDocThreatPitThenReturnDoctorBobThreatPit() { String expect = "Doctor Bob threat Pit"; String result = doc.threat(pit); assertThat(result, is(expect)); }