ElasticsearchIndexInformation implements IndexInformation { @Override public String[] getIndexNames() { GetIndexRequest getIndexRequest = new GetIndexRequest(StringPool.STAR); GetIndexResponse getIndexResponse = getIndexResponse(getIndexRequest); return getIndexResponse.getIndices(); }  @Override String getCompanyIndexName(long companyId); @Override String getFieldMappings(String indexName); @Override String[] getIndexNames();  }
@Test public void testGetIndexNames() throws Exception { _companyIndexFactoryFixture.createIndices(); AssertUtils.assertEquals( "", Arrays.asList(_companyIndexFactoryFixture.getIndexName()), Arrays.asList(_elasticsearchIndexInformation.getIndexNames())); }