@Test
public void testIndexMadeUnique() {
// given an index which only changed by becoming unique
DBTable table = createTableWithColumns("tbl", 3);
DBIndex index1 = new DBNonUniqueIndex("idx", true, table, "col1");
DBIndex index2 = new DBUniqueIndex("idx", true, new DBUniqueConstraint(table, "uk1", false, "col1"));
TableChange tableChange = new TableChange(table, null);
// when performing a comparison
new IndexComparator(config).compareObjects(index1, index2, tableChange);
// then the result must be an IndexUniquenessChange
System.out.println(tableChange);