public function negatedInstanceofFilterUsingNodeTypeIsSupported()
{
$productsNode = $this->node->getNode('products');
$teaserNode = $this->node->getNode('teaser');
$sidebarNode = $this->node->getNode('sidebar');
$q = new FlowQuery(array($this->node, $productsNode, $teaserNode, $sidebarNode));
$foundNodes = $q->filter('[instanceof !Neos.ContentRepository.Testing:ContentCollection]')->get();
$this->assertSame($this->node, $foundNodes[0]);
$this->assertSame($productsNode, $foundNodes[1]);
$this->assertEquals(2, count($foundNodes));
$foundNodes = $q->filter('[instanceof !Neos.ContentRepository.Testing:Page]')->get();
$this->assertSame($teaserNode, $foundNodes[0]);
$this->assertSame($sidebarNode, $foundNodes[1]);
$this->assertEquals(2, count($foundNodes));
$foundNodes = $q->filter('[instanceof !X]')->get();
$this->assertEquals(4, count($foundNodes));
}