@Test
public void testAddColumn() {

    ColumnStore<Node> columnStore = generateEmptyNodeStore();
    IndexImpl<Node> index = columnStore.indexStore.mainIndex;
    ColumnImpl col = new ColumnImpl("foo", String.class, "foo", null, Origin.DATA, true, false);
    col.setStoreId(0);
    Assert.assertEquals(index.size(), 0);
    index.addColumn(col);
    Assert.assertEquals(index.size(), 1);
    Assert.assertSame(index.getIndex(col).column, col);
}