public function testDispatchFrom()
{
$from = $this->createNode('From', array());
$source = $this->createNode('SourceDocument', array('foobar', 'alias'));
$from->addChild($source);
$res = $this->converter->dispatch($from);
$this->assertInstanceOf('PHPCR\\Query\\QOM\\SelectorInterface', $res);
$this->assertEquals('nt:unstructured', $res->getNodeTypeName());
$this->assertEquals('alias', $res->getSelectorName());
}