IndexStore { protected IndexImpl getIndex(Graph graph) { GraphView view = graph.getView(); if (view.isMainView()) { return mainIndex; } lock(); try { IndexImpl<T> viewIndex = viewIndexes.get(graph.getView()); if (viewIndex == null) { viewIndex = createViewIndex(graph); } return viewIndex; } finally { unlock(); } } IndexStore(ColumnStore<T> columnStore); Object set(Column column, Object oldValue, Object value, T element); void clear(T element); void index(T element); void indexView(Graph graph); void indexInView(T element, GraphView view); void clearInView(T element, GraphView view); void clear(GraphView view); void clear();  }
@Test public void testGetMainIndex() { GraphStore graphStore = new GraphStore(); IndexStore<Node> indexStore = graphStore.nodeTable.store.indexStore; Assert.assertNotNull(indexStore.getIndex(graphStore)); }