@Test
public void testUKOnDifferentColumn() {
// given a table of which a unique key was reassigned to another column
DBTable table1 = createTableWithColumns("tbl", 2);
new DBUniqueConstraint(table1, "uk1", false, "col1");
DBTable table2 = createTableWithColumns("tbl", 2);
new DBUniqueConstraint(table2, "uk1", false, "col2");
SchemaChange schemaChange = new SchemaChange(config);
// when comparing the tables
new TableComparator(config).compareObjects(table1, table2, schemaChange);
// then the result must be a ConstraintDeletion and a UniqueConstraintCreation
System.out.println(schemaChange);