public function flushRemovesOnlyOwnEntries()
{
$thisCache = $this->getMockBuilder(\Neos\Cache\Frontend\FrontendInterface::class)->disableOriginalConstructor()->getMock();
$thisCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thisCache'));
$thisBackend = $this->setUpBackend();
$thisBackend->setCache($thisCache);
$thatCache = $this->getMockBuilder(\Neos\Cache\Frontend\FrontendInterface::class)->disableOriginalConstructor()->getMock();
$thatCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thatCache'));
$thatBackend = $this->setUpBackend();
$thatBackend->setCache($thatCache);
$thisBackend->set('thisEntry', 'Hello');
$thatBackend->set('thatEntry', 'World!');
$thatBackend->flush();
$this->assertEquals('Hello', $thisBackend->get('thisEntry'));
$this->assertFalse($thatBackend->has('thatEntry'));
}