ElasticsearchIndexInformation implements IndexInformation { @Override public String getCompanyIndexName(long companyId) { return _indexNameBuilder.getIndexName(companyId); }  @Override String getCompanyIndexName(long companyId); @Override String getFieldMappings(String indexName); @Override String[] getIndexNames();  }
@Test public void testGetCompanyIndexName() throws Exception { _companyIndexFactoryFixture.createIndices(); long companyId = RandomTestUtil.randomLong(); Assert.assertEquals( getIndexNameBuilder(companyId), _elasticsearchIndexInformation.getCompanyIndexName(companyId)); }