@Test (expected=DuplicateIndexException.class)
public void namedPKConstraint() throws StandardException {

    String sql = "CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, CONSTRAINT co1 PRIMARY KEY (c1))";
    StatementNode stmt = parser.parseStatement(sql);
    assertTrue(stmt instanceof CreateTableNode);
    TableDDL.createTable(ddlFunctions, null, DEFAULT_SCHEMA, (CreateTableNode)stmt, null);
}