@BeforeClass
  public static void onetimeSetup() throws Exception {
    Driver driver = createDriver();
    driver.run("create table t1(i int)");
    driver.run("create view v1 as select * from t1");
  }
Test if ReadEntity isDirect flag is set correctly to indicate if
the entity represents a direct or indirect dependency. See documentation
of flag in ReadEntity.
ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java