/**
  * @dataProvider loadProvider
  * @param mixed $expected
  * @param string $id
  * @param mixed $cache
  * @param bool $isGet
  * @param bool $isHead
  */
 public function testLoad($expected, $id, $cache, $isGet, $isHead)
 {
     $this->requestMock->expects($this->once())->method('isGet')->will($this->returnValue($isGet));
     $this->requestMock->expects($this->any())->method('isHead')->will($this->returnValue($isHead));
     $this->fullPageCacheMock->expects($this->any())->method('load')->with($this->equalTo($id))->will($this->returnValue(serialize($cache)));
     $this->identifierMock->expects($this->any())->method('getValue')->will($this->returnValue($id));
     $this->assertEquals($expected, $this->kernel->load());
 }