/**
* @expectedException \PHPCR\Query\InvalidQueryException
*/
public function testDescendantQueryTrailingSlash()
{
$this->nodeTypeManager->expects($this->once())->method('getSubtypes')->will($this->returnValue(array()));
$query = $this->factory->createQuery($this->factory->selector('nt:unstructured', 'nt:unstructured'), $this->factory->descendantNode('nt:unstructured', '/some/node/'));
$this->walker->walkQOMQuery($query);
}