@Test
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"));
}