@Test
public void simpleWhereTest() {
String statement = "SELECT * FROM MyType WHERE MyProp1=123";
CmisQueryWalker walker = traverseStatementAndCatchExc(statement);
assertNotNull(walker);
List<CmisSelector> whereRefs = queryObj.getWhereReferences();
Map<Integer, CmisSelector> colRefs = queryObj.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 == queryObj.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);