private static boolean equivalent(Map<String, String> lhs, Map<String, String> rhs) {
    return lhs.size() == rhs.size() && Maps.difference(lhs, rhs).areEqual();
  }
Helper method to compare 2 Map instances, for equivalence.
@param lhs First map to be compared.
@param rhs Second map to be compared.
@return true, if the 2 Maps contain the same entries.
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java