@Test
public void shouldOptimizePlanForSimpleQueryWithSelectStar() {

    node = optimize("SELECT * FROM t1");
    // Create the expected plan ...
    PlanNode expected = new PlanNode(Type.ACCESS, selector("t1"));
    PlanNode project = new PlanNode(Type.PROJECT, expected, selector("t1"));
    project.setProperty(Property.PROJECT_COLUMNS, columns(column("t1", "c11"), column("t1", "c12"), column("t1", "c13")));
    PlanNode source = new PlanNode(Type.SOURCE, project, selector("t1"));
    source.setProperty(Property.SOURCE_NAME, selector("t1"));
    source.setProperty(Property.SOURCE_COLUMNS, context.getSchemata().getTable(selector("t1")).getColumns());
    // Compare the expected and actual plan ...
    assertPlanMatches(expected);
}