private void checkVertices() {
    List<Set<LineageLogger.Vertex>> verticesLists = getVerticesFromHooks();

    assertEquals("5 runs of 2 inserts makes 10", 10, verticesLists.size());
    for (Set<LineageLogger.Vertex> vertices : verticesLists) {
      assertFalse("Each insert affects a column so should be some vertices",
          vertices.isEmpty());
      assertEquals("Each insert affects one column so should be one vertex",
          1, vertices.size());
      Iterator<LineageLogger.Vertex> iterator = vertices.iterator();
      assertTrue(iterator.hasNext());
      LineageLogger.Vertex vertex = iterator.next();
      assertEquals(0, vertex.getId());
      assertEquals(LineageLogger.Vertex.Type.COLUMN, vertex.getType());
      String label = vertex.getLabel();
      System.out.println("vertex.getLabel() = " + label);
      assertTrue("did not see one of the 2 expected column names",
          label.equals("testjdbcminihs2.testconcurrentlineage1.col1") ||
              label.equals("testjdbcminihs2.testconcurrentlineage2.col2"));
    }
  }
check to see that the vertices derived from the HookContexts are correct
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java