@Test
public void testHasColumn() {

    ColumnStore<Node> columnStore = generateEmptyNodeStore();
    IndexImpl<Node> index = columnStore.indexStore.mainIndex;
    ColumnImpl col1 = new ColumnImpl("foo", String.class, "foo", null, Origin.DATA, true, false);
    ColumnImpl col2 = new ColumnImpl("bar", String.class, "bar", null, Origin.DATA, false, false);
    col1.setStoreId(0);
    col2.setStoreId(1);
    Assert.assertFalse(index.hasColumn(col1));
    index.addColumn(col1);
    index.addColumn(col2);
    Assert.assertTrue(index.hasColumn(col1));
    Assert.assertFalse(index.hasColumn(col2));
}