@Test
    public void testCreateIndex() throws Exception {
        final String indexName = "test_create_index";
        elasticsearchApi.createIndex(indexName);
        assertTrue(elasticsearchApi.indexExists(indexName));
    }
Test cases for {@link ElasticsearchApi#createIndex(String)}.

@throws Exception
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/sink/ElasticsearchApiTest.java