public function setDefaultValueNeverReplaceExistingValue()
{
$nodeService = $this->createNodeService();
$mockNode = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock();
$mockNodeType = $this->mockNodeType('Neos.ContentRepository.Testing:Content');
$mockNode->expects($this->once())->method('getNodeType')->will($this->returnValue($mockNodeType));
$mockNode->expects($this->once())->method('getProperty')->with('title')->will($this->returnValue('Existing value'));
$mockNode->expects($this->never())->method('setProperty');
$mockNodeType->expects($this->once())->method('getDefaultValuesForProperties')->will($this->returnValue(array('title' => 'hello')));
$nodeService->setDefaultValues($mockNode);
}