public void testCreateQueryFromSourceWithConstraintOrderingAndColumn() throws RepositoryException {
Source selector = qomFactory.selector(testNodeType, SELECTOR_NAME1);
PropertyExistence propExist = qomFactory.propertyExistence(SELECTOR_NAME1, propertyName1);
PropertyValue propValue = qomFactory.propertyValue(SELECTOR_NAME1, propertyName1);
Ordering ordering = qomFactory.ascending(propValue);
Column column = qomFactory.column(SELECTOR_NAME1, propertyName1, null);
QueryObjectModel qom = qomFactory.createQuery(selector, propExist,
new Ordering[]{ordering}, new Column[]{column});
assertTrue("Not a selector source", qom.getSource() instanceof Selector);
assertTrue("Not a property existence constraint", qom.getConstraint() instanceof PropertyExistence);