public function createdNodesHaveSubNodesCreatedIfDefinedInNodeType()
{
$rootNode = $this->context->getRootNode();
$nodeTypeManager = $this->objectManager->get(NodeTypeManager::class);
$testNodeType = $nodeTypeManager->getNodeType('Neos.ContentRepository.Testing:NodeTypeWithSubnodes');
$fooNode = $rootNode->createNode('foo', $testNodeType);
$firstSubnode = $fooNode->getNode('subnode1');
$this->assertInstanceOf(Node::class, $firstSubnode);
$this->assertSame('default value 1', $firstSubnode->getProperty('test1'));
}