table.setName("test"); // table name required to add table to schema, to add index to schema
schema.addTable(table);
column.setType(Primitive.INTEGER);
table.addColumn(column);
index.addIndexColumn(new IndexColumn(column, true));
table.addIndex(index);
table.setPrimaryKey(index);
schema.setDataSource(m_database);
// validate initial schema state
assertEquals(1, schema.getIndexCount());