public function nodeInNonDefaultDimensionGetsNewUriSegmentOnMoveIfUriAlreadyExists()
{
$homeNodeInNonDefaultDimension = $this->getNodeWithContextPath($this->nodeContextPath . '@live;language=de');
$historyNode = $homeNodeInNonDefaultDimension->getNode('about-us/history');
// History node will be moved inside products and gets an uriPathSegment that exists there already.
$historyNode->setProperty('uriPathSegment', 'neos');
$this->persistenceManager->persistAll();
$historyNode->moveInto($homeNodeInNonDefaultDimension->getNode('products'));
$uriPathSegment = $historyNode->getProperty('uriPathSegment');
$this->assertEquals('neos-1', $uriPathSegment);
}