DBTable table = createTableWithColumns("tbl", 3);
DBIndex index1 = new DBNonUniqueIndex("idx", true, table, "col1");
DBIndex index2 = new DBNonUniqueIndex("idx", true, table, "col1");
// when performing a comparison
TableChange tableChange = new TableChange(table, null);
new IndexComparator(new ComparisonConfig("db1", "db2", null)).compareObjects(index1, index2, tableChange);
// then the result must be empty
System.out.println(tableChange);
List<StructuralChange<?>> indexChanges = tableChange.getSubChanges();
assertEquals(0, indexChanges.size());
}