}
public void testFindsColumns() {
Expression e = SQLExpression.create("papers.publish = 1 AND papers.url1 != 'http://www.example.com\\'http://www.example.com' AND papers.url2 != 'http://www.example.com\\\\\\\\http://www.example.com' AND papers.rating > 4");
Set<Attribute> expectedColumns = new HashSet<Attribute>(Arrays.asList(
new Attribute[]{new Attribute(null, "papers", "publish"),
new Attribute(null, "papers", "url1"),
new Attribute(null, "papers", "url2"),
new Attribute(null, "papers", "rating")}));
assertEquals(expectedColumns, e.attributes());
}