@Test
public void testOverrideTypeMappings() throws Exception {

	Mockito.when(
		_elasticsearchConfigurationWrapper.additionalIndexConfigurations()
	).thenReturn(
		loadAdditionalAnalyzers()
	);
	Mockito.when(
		_elasticsearchConfigurationWrapper.overrideTypeMappings()
	).thenReturn(
		loadOverrideTypeMappings()
	);
	createIndices();
	String field1 = "title";
	indexOneDocument(field1);
	assertAnalyzer(field1, "kuromoji_liferay_custom");
	String field2 = "description";
	indexOneDocument(field2);
	assertNoAnalyzer(field2);
}