private static void assertEqualsSansTime(Database expected, Database actual) {
    Database copy = expected.deepCopy();
    copy.setCreateTime(actual.getCreateTime());
    assertEquals(copy, actual);
  }
Asserts that two database objects are equals ignoring the creation time. If not an {@link AssertionError} is thrown.
The creation time of the database is overridden internally by the HMS server thus not predictable.
itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/TestDbNotificationListener.java