@Override
      public int compare(HiveLockObj lock1, HiveLockObj lock2) {
        return lock1.getName().compareTo(lock2.getName());
      }
Verifies the current database object is not locked if the table read is against different database
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDummyTxnManager.java