@Test
public void getCreateUniqueConstraintSQL() throws SQLException
{
QualifiedName table = mock(QualifiedName.class);
UniqueConstraint constraint = mock(UniqueConstraint.class);
when(table.getDDLName()).thenReturn("table");
when(constraint.getName()).thenReturn("name");
when(constraint.getTable()).thenReturn(table);
when(constraint.getColumnList()).thenReturn(Arrays.asList("column1", "column2"));
String result = this.dialect.getCreateUniqueConstraintSQL(constraint);
assertEquals("ALTER TABLE table ADD CONSTRAINT name UNIQUE (column1, column2)", result);
}