static <ContentType> List<String> compareSets(String message, Set<ContentType> base, Set<ContentType> other) {
    List<String> diffs = new ArrayList<>(2);
    Set<ContentType> missingItems = Sets.difference(base, other);
    if (!missingItems.isEmpty()) {
      diffs.add(message + " Missing items: " + Joiner.on(", ").join(missingItems));
    }
    Set<ContentType> extraItems = Sets.difference(other, base);
    if (!extraItems.isEmpty()) {
      diffs.add(message + " Extra items: " + Joiner.on(", ").join(extraItems));
    }
    return diffs;
  }
To verify if DDL have certain characteristics:
<ul>
  <li>There are no unnamed constraints</li>
  <li>Alter tables are only used in exceptional cases</li>
  <li>Table and constraint name lenghts doesn't exceed 30 (a restriction imposed by Oracle)</li>
</ul>
ambari-server/src/test/java/org/apache/ambari/server/orm/db/DDLTests.java