public function processDeletedObjectsPassesObjectsToRemoveEntity()
{
$object = new \stdClass();
$objects = new \SplObjectStorage();
$objects->attach($object);
$mockSession = $this->createMock(Persistence\Generic\Session::class);
$mockSession->expects($this->at(0))->method('hasObject')->with($object)->will($this->returnValue(true));
$mockSession->expects($this->at(1))->method('unregisterReconstitutedEntity')->with($object);
$mockSession->expects($this->at(2))->method('unregisterObject')->with($object);
$backend = $this->getAccessibleMock(Persistence\Generic\Backend\AbstractBackend::class, ['getObjectCountByQuery', 'getObjectDataByQuery', 'getObjectDataByIdentifier', 'removeEntity', 'removeValueObject', 'storeObject', 'isConnected']);
$backend->injectPersistenceSession($mockSession);
$backend->expects($this->once())->method('removeEntity')->with($object);
$backend->setDeletedEntities($objects);
$backend->_call('processDeletedObjects');
}