public function testWillGetIndexFromTransportIfDataExists()
{
$index = M::mock();
$transport = M::mock('Gittern\\Transport\\TransportInterface', array('hasIndexData' => true, 'getIndexData' => 'foo'));
$hydrator = M::mock();
$hydrator->shouldReceive('hydrate')->with('foo')->andReturn($index);
$this->repo->setIndexHydrator($hydrator);
$this->repo->setTransport($transport);
$this->assertEquals($index, $this->repo->getIndex());
}