CompanyIndexFactory implements ElasticsearchConfigurationObserver, IndexContributorReceiver,
			   IndexFactory { protected void loadAdditionalTypeMappings( String indexName, LiferayDocumentTypeFactory liferayDocumentTypeFactory) { if (Validator.isNull( _elasticsearchConfigurationWrapper.additionalTypeMappings())) { return; } liferayDocumentTypeFactory.addTypeMappings( indexName, _elasticsearchConfigurationWrapper.additionalTypeMappings()); }  @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 testAdditionalTypeMappings() throws Exception { Mockito.when( _elasticsearchConfigurationWrapper.additionalTypeMappings() ).thenReturn( loadAdditionalTypeMappings() ); assertAdditionalTypeMappings(); }