BooleanConstraint bc = startWith.createEQ();
bc.addPart(ref.newColumnReference("MyIndex"));
bc.addPart(1);
CombinedConstraint connectByPrior = selectStatement.getConnectBy();
bc = connectByPrior.createEQ();
OraColumnReference oraRef = (OraColumnReference) ref.newColumnReference("MyIndex");
oraRef.setPrior(true);
bc.addPart(oraRef);
bc.addPart(ref.newColumnReference("MyName"));
SQLGenerator gen = getSQLGenerator();
String query = gen.getQuery(selectStatement);
assertEquals("SELECT MyIndex, MyName, MyDate FROM MySchema.MyTable START WITH MyIndex=1 CONNECT BY PRIOR MyIndex=MyName", query);