@Test
  public void checkHiveOperationTypeMatch(){
    for (HiveOperation op : HiveOperation.values()) {
      try {
        HiveOperationType.valueOf(op.name());
      } catch(IllegalArgumentException ex) {
        // if value is null or not found, exception would get thrown
        fail("Unable to find corresponding type in HiveOperationType for " + op + " : " +  ex );
      }
    }
  }
test that all enums in {@link HiveOperation} match one in @{link HiveOperationType}
ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHiveOperationType.java