@Test
public void testIndexColumnRemoved() {
// given a table with an index of which one column was removed
DBTable table = createTableWithColumns("tbl", 2);
DBIndex index1 = new DBNonUniqueIndex("idx", true, table, "col1", "col2");
DBIndex index2 = new DBNonUniqueIndex("idx", true, table, "col1");
TableChange tableChange = new TableChange(table, null);
// when performing a comparison
new IndexComparator(config).compareObjects(index1, index2, tableChange);
// then the result must be a ColumnsRemoval
System.out.println(tableChange);