@Test
public void testActivate() throws Exception {

	ElasticsearchConfigurationWrapper
		elasticsearchConfigurationWrapperMock = Mockito.mock(
			ElasticsearchConfigurationWrapper.class);
	Mockito.when(
		elasticsearchConfigurationWrapperMock.indexNamePrefix()
	).thenReturn(
		"UPPERCASE"
	);
	CompanyIdIndexNameBuilder companyIdIndexNameBuilder =
		new CompanyIdIndexNameBuilder() {
			{
				elasticsearchConfigurationWrapper =
					elasticsearchConfigurationWrapperMock;
			}
		};
	companyIdIndexNameBuilder.activate();
	Assert.assertEquals(
		"uppercase0", companyIdIndexNameBuilder.getIndexName(0));
}