@Test
public void testGetIndexes() {

	FieldMappingsDisplayBuilder fieldMappingsDisplayBuilder =
		new FieldMappingsDisplayBuilder(http);
	fieldMappingsDisplayBuilder.setCurrentURL("/");
	fieldMappingsDisplayBuilder.setIndexInformation(indexInformation);
	fieldMappingsDisplayBuilder.setNamespace("_namespace_");
	FieldMappingsDisplayContext fieldMappingsDisplayContext =
		fieldMappingsDisplayBuilder.build();
	List<FieldMappingIndexDisplayContext> fieldMappingIndexDisplayContexts =
		fieldMappingsDisplayContext.getFieldMappingIndexDisplayContexts();
	Assert.assertEquals(
		fieldMappingIndexDisplayContexts.toString(), 2,
		fieldMappingIndexDisplayContexts.size());
	FieldMappingIndexDisplayContext fieldMappingIndexDisplayContext =
		fieldMappingIndexDisplayContexts.get(0);
	Assert.assertEquals(
		"index1", fieldMappingIndexDisplayContext.getName());
	Assert.assertEquals(
		"active", fieldMappingIndexDisplayContext.getCssClass());
	String url = fieldMappingIndexDisplayContext.getUrl();
	Assert.assertTrue(
		url, url.contains("_namespace_selectedIndexName=index1"));
	fieldMappingIndexDisplayContext = fieldMappingIndexDisplayContexts.get(
		1);
	Assert.assertEquals(
		"index2", fieldMappingIndexDisplayContext.getName());
	Assert.assertEquals("", fieldMappingIndexDisplayContext.getCssClass());
	url = fieldMappingIndexDisplayContext.getUrl();
	Assert.assertTrue(
		url, url.contains("_namespace_selectedIndexName=index2"));
}