SQL.replaceColumnsInExpression("ofoo.col1", fooAsBar));
}
public void testReplaceColumnsWithSchemaInExpressionWithAliasMap() {
Alias alias = new Alias(new RelationName("schema", "foo"), new RelationName("schema", "bar"));
AliasMap fooAsBar = new AliasMap(Collections.singleton(alias));
assertEquals("schema.bar.col1",
SQL.replaceColumnsInExpression("schema.foo.col1", fooAsBar));
}