@Test
public void testDeleteViewIndex() {

    GraphStore graphStore = GraphGenerator.generateTinyGraphStore();
    IndexStore<Node> indexStore = graphStore.nodeTable.store.indexStore;
    ColumnImpl column = new ColumnImpl("foo", String.class, "Foo", null, Origin.DATA, true, false);
    graphStore.nodeTable.store.addColumn(column);
    NodeImpl n1 = graphStore.getNode("1");
    n1.setAttribute(column, "bar");
    GraphViewImpl view = graphStore.viewStore.createView();
    view.fill();
    Graph graph = graphStore.viewStore.getGraph(view);
    IndexImpl index = indexStore.createViewIndex(graph);
    indexStore.deleteViewIndex(graph);
    Assert.assertFalse(index.hasColumn(column));
}