CompanyIndexFactory implements ElasticsearchConfigurationObserver, IndexContributorReceiver,
			   IndexFactory { @Reference( cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY ) protected void addElasticsearchIndexSettingsContributor( com.liferay.portal.search.elasticsearch7.settings. IndexSettingsContributor indexSettingsContributor) { _elasticsearchIndexSettingsContributors.add(indexSettingsContributor); }  @Override void addIndexContributor(IndexContributor indexContributor); @Override int compareTo(
		ElasticsearchConfigurationObserver elasticsearchConfigurationObserver); @Override void createIndices(IndicesClient indicesClient, long companyId); @Override void deleteIndices(IndicesClient indicesClient, long companyId); @Override int getPriority(); @Override void onElasticsearchConfigurationUpdate(); @Override synchronized void registerCompanyId(long companyId); @Override void removeIndexContributor(IndexContributor indexContributor); @Override synchronized void unregisterCompanyId(long companyId);  }
@Test public void testAdditionalTypeMappingsWithRootTypeFromContributor() throws Exception { _companyIndexFactory.addElasticsearchIndexSettingsContributor( new BaseIndexSettingsContributor(1) { @Override public void contribute( String indexName, TypeMappingsHelper typeMappingsHelper) { typeMappingsHelper.addTypeMappings( indexName, loadAdditionalTypeMappingsWithRootType()); } }); assertAdditionalTypeMappings(); }