### Question:
Teacher extends Profession { public String teach(Student student) { return this.profession + " " + this.name + " teach student " + student.name; } Teacher(String name); String teach(Student student);  }### Answer:
@Test public void ifTeacherTeachStudenThenReturnStringTeacherOlegTeachStudentIvan() { Teacher oleg = new Teacher("Oleg"); Student ivan = new Student("Ivan"); assertThat(oleg.teach(ivan), is("Teacher Oleg teach student Ivan")); }