@Test
public void shouldGeneratedODataViewDDLFromTableWithMultipleUC() throws Exception {

    String EXPECTED_DDL = "CREATE VIEW MyView ( Col1 string, Col2 string, Col3 long, CONSTRAINT uc1 UNIQUE (Col1),CONSTRAINT uc2 UNIQUE (Col2, Col3)) AS \n"
    + "SELECT  Col1, Col2, Col3 \n"
    + "FROM MyVDB.MyTable;";
    Table aTable = createTable("MyVDB", VDB_PATH, "MyModel", "MyTable");
    Column col1 = aTable.addColumn(getTransaction(), "Col1");
    col1.setDatatypeName(getTransaction(), "string");
    Column col2 = aTable.addColumn(getTransaction(), "Col2");
    col2.setDatatypeName(getTransaction(), "string");
    Column col3 = aTable.addColumn(getTransaction(), "Col3");
    col3.setDatatypeName(getTransaction(), "long");
    UniqueConstraint uc1 = aTable.addUniqueConstraint(getTransaction(), "uc1");
    uc1.addColumn(getTransaction(), col1);
    UniqueConstraint uc2 = aTable.addUniqueConstraint(getTransaction(), "uc2");
    uc2.addColumn(getTransaction(), col2);
    uc2.addColumn(getTransaction(), col3);
    commit();
    
    List<String> colNames = new ArrayList<String>();
    colNames.add("Col1");
    colNames.add("Col2");
    colNames.add("Col3");
    
    String viewDdl = ViewDdlBuilder.getODataViewDdl(getTransaction(), "MyView", aTable, colNames);
    assertThat(viewDdl, is(EXPECTED_DDL));
}