public function testWillReturnCachedIndexIfExists()
{
$index = M::mock();
$rp = new \ReflectionProperty('Gittern\\Repository', 'index');
$rp->setAccessible(true);
$rp->setValue($this->repo, $index);
$this->assertEquals($index, $this->repo->getIndex());
}