@Test
    public void testIndexExists() throws Exception {
        final String indexName = "test_index_exists";
        boolean result = elasticsearchApi.indexExists(indexName);
        assertEquals(false, result);
        elasticsearchApi.createIndex(indexName);
        result = elasticsearchApi.indexExists(indexName);
        assertEquals(true, result);
    }
Test cases for {@link ElasticsearchApi#indexExists(String)}.

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