outline.addColumn("id", true);
outline.addColumn("value", true);
m_doubleColTableStep.addIndexOutline(outline);
RelationalSchema schema = upgrade(m_doubleColTableStep, null, null);
Table table = schema.getTable(m_doubleColTableStep.getName());
assertNotNull(table);
assertEquals(1, table.getIndexCount());
assertEquals(2, table.getIndex(0).getIndexColumnCount());
table.setType(Table.MANAGED); // comes in as Table.EXTERNAL from DB
Index aspect = new Index("aspect", Index.ASPECT, null);
aspect.addIndexColumn(new IndexColumn(table.getColumn("value"), true));
table.getIndex(0).addAspect(aspect);
schema.addIndex(aspect);
RemoveIndexAspectStep step = new RemoveIndexAspectStep();
step.setAspectName("aspect");
step.addPointcutPattern(table.getIndex(0).getName(), true);
schema = upgrade(step, schema, null);
table = schema.getTable(m_doubleColTableStep.getName());
assertNotNull(table);
assertEquals(1, table.getIndexCount());
Index index = table.getIndex(0);
assertEquals(1, index.getIndexColumnCount());
assertEquals("id", index.getIndexColumn(0).getColumn().getName());
}