/**
  * testSessionValid method
  *
  * @return void
  */
 public function testSessionValid()
 {
     $Session = new SessionComponent($this->ComponentCollection);
     $this->assertTrue($Session->valid());
     Configure::write('Session.checkAgent', true);
     $Session->userAgent('rweerw');
     $this->assertFalse($Session->valid());
     $Session = new SessionComponent($this->ComponentCollection);
     $Session->time = $Session->read('Config.time') + 1;
     $this->assertFalse($Session->valid());
 }