@Test
  public void checkHiveOperationTypeMatch() {
    Set<HiveOperationType> operationMapKeys = Operation2Privilege.getOperationTypes();
    for (HiveOperationType operationType : HiveOperationType.values()) {
      if (!operationMapKeys.contains(operationType)) {
        fail("Unable to find corresponding entry in Operation2Privilege map for HiveOperationType "
            + operationType);
      }
    }
    assertEquals("Check if Operation2Privilege, HiveOperationType have same number of instances",
        operationMapKeys.size(), HiveOperationType.values().length);
  }
test that all enums in {@link HiveOperationType} match one map entry in
Operation2Privilege
ql/src/test/org/apache/hadoop/hive/ql/parse/authorization/plugin/sqlstd/TestOperation2Privilege.java