// and results in an Unresolved table reference that should be handled by a postProcess() method
printTest("shouldParseTeiidStatements_1()");
String content = getFileContent(DDL_FILE_PATH + "sap_short_test.ddl");
assertScoreAndParse(content, "teiid_test_statements_1", 3);
final AstNode tableNode = getRootNode().getChildren().get(0);
if (tableNode != null) {
final List<AstNode> kids = getRootNode().childrenWithName("BookingCollection");
assertThat(kids.size(), is(1));
final List<AstNode> tableKids = kids.get(0).getChildren();
assertThat(tableKids.size(), is(9));
final List<AstNode> fkNodes = kids.get(0).childrenWithName("BookingFlight");
assertThat(fkNodes.size(), is(1));
final List<AstNode> fc_kids = getRootNode().childrenWithName("FlightCollection");
assertThat(fc_kids.size(), is(1));
final List<AstNode> fc_columns = fc_kids.get(0).childrenWithName("carrid");
assertThat(fc_columns.size(), is(1));
AstNode columnNode = fc_columns.get(0);
@SuppressWarnings( "unchecked" )
ArrayList<AstNode> props = ((ArrayList<AstNode>)fkNodes.get(0).getProperty(TeiidDdlLexicon.Constraint.TABLE_REFERENCE_REFERENCES));
AstNode refColumnNode = props.get(0);
assertThat(refColumnNode, is(columnNode));
}
}