public function testSetDepartment() { // new entity $team = new Team(); // dummy entity $department = new Department(); $department->setName("NTNU"); // Use the setDepartment method $team->setDepartment($department); // Assert the result $this->assertEquals($department, $team->getDepartment()); }