loadByNode() public method

public loadByNode ( PHPCR\NodeInterface $node, $locale, $webspaceKey = null, $excludeGhost = true, $loadGhostContent = false, $excludeShadow = true )
$node PHPCR\NodeInterface
 public function testLoad()
 {
     $node = $this->session->getNode($this->snippet1OriginalPath);
     $snippet = $this->contentMapper->loadByNode($node, 'de', null, false, true);
     $templateKey = $snippet->getKey();
     $this->assertEquals('animal', $templateKey);
 }