public void testCreateIndexWithSameNameButDifferentType(){
this.restAPI.createIndex(Relationship.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);
this.restAPI.createIndex(Node.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);
RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
assertTrue(index.existsForNodes("indexName"));
assertTrue(index.existsForRelationships("indexName"));
}
@Test
public void testCreateNodeUniquely() {
final RestIndex<Node> index = restAPI.createIndex(Node.class, "unique-node", LuceneIndexImplementation.EXACT_CONFIG);