public function testGetById()
 {
     $model = new Session();
     $model->setId('2b73fftuqqa84lha6jt4pcl097')->setName('uthando-cms')->setModified('1398807915')->setLifetime(1440)->setData('');
     $mapperMock = $this->getMockBuilder('UthandoSessionManager\\Mapper\\Session')->disableOriginalConstructor()->getMock();
     $mapperManagerMock = $this->getMockBuilder('UthandoCommon\\Mapper\\MapperManager')->disableOriginalConstructor()->getMock();
     $mapperMock->expects($this->once())->method('getById')->with('2b73fftuqqa84lha6jt4pcl097')->will($this->returnValue($model));
     $mapperManagerMock->expects($this->once())->method('get')->with('UthandoSessionManagerSession')->will($this->returnValue($mapperMock));
     $this->serviceManager->setAllowOverride(true);
     $this->serviceManager->setService('UthandoMapperManager', $mapperManagerMock);
     $service = $this->serviceManager->get('UthandoServiceManager')->get('UthandoSessionManagerSession');
     $this->assertSame($model, $service->getById('2b73fftuqqa84lha6jt4pcl097'));
 }
 public function testSetGetId()
 {
     $this->model->setId('2b73fftuqqa84lha6jt4pcl097');
     $this->assertSame('2b73fftuqqa84lha6jt4pcl097', $this->model->getId());
 }