### Question:
LuceneIndex implements Index<T> { public String getName() { return this.identifier.indexName; } LuceneIndex( LuceneIndexImplementation service, IndexIdentifier identifier ); String getName(); void add( T entity, String key, Object value ); void remove( T entity, String key, Object value ); void remove( T entity, String key ); void remove( T entity ); void delete(); IndexHits<T> get( String key, Object value ); IndexHits<T> query( String key, Object queryOrQueryObject ); IndexHits<T> query( Object queryOrQueryObject ); void setCacheCapacity( String key, int capacity ); Integer getCacheCapacity( String key );  }### Answer:
@Test public void makeSureIndexNameAndConfigCanBeReachedFromIndex() { String indexName = "my-index-1"; Index<Node> nodeIndex = nodeIndex( indexName, LuceneIndexImplementation.EXACT_CONFIG ); assertEquals( indexName, nodeIndex.getName() ); assertEquals( LuceneIndexImplementation.EXACT_CONFIG, graphDb.index().getConfiguration( nodeIndex ) ); String indexName2 = "my-index-2"; Index<Relationship> relIndex = relationshipIndex( indexName2, LuceneIndexImplementation.FULLTEXT_CONFIG ); assertEquals( indexName2, relIndex.getName() ); assertEquals( LuceneIndexImplementation.FULLTEXT_CONFIG, graphDb.index().getConfiguration( relIndex ) ); }