/**
* Test case for {@link QueryObjectModelFactory#comparison(DynamicOperand, int, StaticOperand)}
*/
public void testComparison() throws RepositoryException {
PropertyValue op1 = qomFactory.propertyValue(propertyName1);
BindVariableValue op2 = qomFactory.bindVariable(VARIABLE_NAME);
for (Iterator it = OPERATORS.iterator(); it.hasNext(); ) {
int operator = ((Integer) it.next()).intValue();
Comparison comp = qomFactory.comparison(op1, operator, op2);
assertTrue("Not a PropertyValue operand", comp.getOperand1() instanceof PropertyValue);
assertTrue("Not a BindVariableValue operand", comp.getOperand2() instanceof BindVariableValue);