/**
  * @test
  */
 public function flushRemovesOnlyOwnEntries()
 {
     $thisCache = $this->createMock(\TYPO3\Flow\Cache\Frontend\FrontendInterface::class);
     $thisCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thisCache'));
     $thisBackend = new ApcBackend(new ApplicationContext('Testing'));
     $thisBackend->injectEnvironment($this->mockEnvironment);
     $thisBackend->setCache($thisCache);
     $thatCache = $this->createMock(\TYPO3\Flow\Cache\Frontend\FrontendInterface::class);
     $thatCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thatCache'));
     $thatBackend = new ApcBackend(new ApplicationContext('Testing'));
     $thatBackend->injectEnvironment($this->mockEnvironment);
     $thatBackend->setCache($thatCache);
     $thisBackend->set('thisEntry', 'Hello');
     $thatBackend->set('thatEntry', 'World!');
     $thatBackend->flush();
     $this->assertEquals('Hello', $thisBackend->get('thisEntry'));
     $this->assertFalse($thatBackend->has('thatEntry'));
 }