public function testIsLogged()
 {
     $us = new UserSession($this->container);
     $this->assertFalse($us->isLogged());
     $this->container['sessionStorage']->user = array();
     $this->assertFalse($us->isLogged());
     $this->container['sessionStorage']->user = array('id' => 1);
     $this->assertTrue($us->isLogged());
 }