public function testDispatchOperands($class, $args, $options)
{
$options = array_merge(array('assert' => null, 'add_child_operand' => false, 'phpcr_class' => null), $options);
$expectedPhpcrClass = '\\PHPCR\\Query\\QOM\\' . $options['phpcr_class'];
$this->primeBuilder();
$operand = $this->createNode($class, $args);
if ($options['add_child_operand']) {
$operand->addChild($this->createNode('OperandDynamicLocalName', array('alias_1')));
}
$res = $this->converter->dispatch($operand);
$this->assertInstanceOf($expectedPhpcrClass, $res);
if (null !== $options['assert']) {
$me = $this;
$options['assert']($me, $res);
}
}