@Test
public void simpleWhereTest() throws Exception {
String statement = "SELECT * FROM MyType WHERE MyProp1=123";
CmisQueryWalker walker = traverseStatementAndCatchExc(statement);
QueryObject qo = walker.queryObj;
List<CmisSelector> whereRefs = qo.getWhereReferences();
Map<Integer, CmisSelector> colRefs = qo.getColumnReferences();
assertTrue(1 == whereRefs.size());
CmisSelector value = whereRefs.iterator().next();
assertTrue(value instanceof ColumnReference);
assertEquals("MyProp1", ((ColumnReference)value).getPropertyQueryName());
// only "*" should be in select references
assertTrue(1 == qo.getSelectReferences().size());
CommonTree tree = (CommonTree) walker.getTreeNodeStream().getTreeSource();
// System.out.println("simpleWhereTest printing Tree ...");
// System.out.println("id in map: " + System.identityHashCode(whereRefs.keySet().iterator().next()));
// assertTrue(traverseTreeAndFindNodeInColumnMap(tree, colRefs));
traverseTreeAndFindNodeInColumnMap2(tree, colRefs);