@Test
public void testIndexNodeUnique() {

    ColumnStore<Node> columnStore = generateBasicNodeColumnStore();
    IndexStore<Node> indexStore = columnStore.indexStore;
    IndexImpl<Node> mainIndex = indexStore.mainIndex;
    Column col1 = columnStore.getColumn("foo");
    Column col2 = columnStore.getColumn("age");
    NodeImpl[] nodes = generateNodesWithUniqueAttributes(columnStore);
    for (NodeImpl n : nodes) {
        indexStore.index(n);
    }
    Assert.assertEquals(mainIndex.countElements(col1), nodes.length);
    Assert.assertEquals(mainIndex.countElements(col2), nodes.length);
    Assert.assertEquals(mainIndex.countValues(col1), nodes.length);
    Assert.assertEquals(mainIndex.countValues(col2), nodes.length);
    Assert.assertEquals(mainIndex.values(col1).size(), nodes.length);
    Assert.assertEquals(mainIndex.values(col2).size(), nodes.length);
}