public static void assertXmlDatabaseFileEquals(
      File expectedDatabaseFile, File actualDatabaseFile, Transformer transformer)
      throws IOException {
    MemoryDatabase expectedDatabase =
        TestDatabaseUtil.readDatabaseFileFromDisk(expectedDatabaseFile, transformer);
    MemoryDatabase actualDatabase =
        TestDatabaseUtil.readDatabaseFileFromDisk(actualDatabaseFile, transformer);

    assertDatabaseEquals(expectedDatabase, actualDatabase);
  }