public static ShowLocksResponseElement checkLock(LockType expectedType, LockState expectedState, String expectedDb,
      String expectedTable, String expectedPartition, List<ShowLocksResponseElement> actuals) {
    return checkLock(expectedType, expectedState, expectedDb, expectedTable, expectedPartition, actuals, false);
  }
The list is small, and the object is generated, so we don't use sets/equals/etc.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestTxnDbUtil.java