@Test
  public void testSimpleQuery() {
    LineageInfo lep = new LineageInfo();
    try {
      lep.getLineageInfo("INSERT OVERWRITE TABLE dest1 partition (ds = '111')  " 
          + "SELECT s.* FROM srcpart TABLESAMPLE (BUCKET 1 OUT OF 1) s " 
          + "WHERE s.ds='2008-04-08' and s.hr='11'", ctx);
      TreeSet<String> i = new TreeSet<String>();
      TreeSet<String> o = new TreeSet<String>();
      i.add("srcpart");
      o.add("dest1");
      checkOutput(lep, i, o);
    } catch (Exception e) {
      e.printStackTrace();
      fail("Failed");
    }
  }
Checks whether the test outputs match the expected outputs.

@param lep
         The LineageInfo extracted from the test
@param i
         The set of input tables
@param o
         The set of output tables
ql/src/test/org/apache/hadoop/hive/ql/tool/TestLineageInfo.java