public function testGetLeaveBalanceExcludingUnlinkedLeave()
 {
     $mockStrategy = $this->getMock('FIFOEntitlementConsumptionStrategy', array('getLeaveWithoutEntitlementDateLimitsForLeaveBalance'));
     $mockStrategy->expects($this->once())->method('getLeaveWithoutEntitlementDateLimitsForLeaveBalance')->with('2013-01-01', '2013-12-31')->will($this->returnValue(false));
     // Using AsAt
     $this->dao->setLeaveEntitlementStrategy($mockStrategy);
     $balance = $this->dao->getLeaveBalance(7, 1, '2013-01-01', '2013-12-31');
     // $entitled = 0, $used = 0, $scheduled = 0, $pending = 0, $notLinked = 0, $taken = 0 ,$adjustment =0
     $expected = new LeaveBalance(5, 2, 2, 0, 0, 0, 0);
     $this->assertEquals($expected, $balance);
 }