protected function compareLeaveRequest(LeaveRequest $expected, LeaveRequest $result)
 {
     $this->assertTrue($result instanceof LeaveRequest);
     $expectedId = $expected->getId();
     if (!empty($expectedId)) {
         $this->assertEquals($expectedId, $result->getId());
     } else {
         $leaveRequestId = $result->getId();
         $this->assertTrue(!empty($leaveRequestId));
     }
     $this->assertEquals($expected->getLeaveTypeId(), $result->getLeaveTypeId());
     $this->assertEquals($expected->getDateApplied(), $result->getDateApplied());
     $this->assertEquals($expected->getEmpNumber(), $result->getEmpNumber());
     $this->assertEquals($expected->getComments(), $result->getComments());
 }