@Test
public void getFieldType() {

  IndexMapping indexMapping = new IndexMapping(ImmutableMap.of("name", "text"));
  assertEquals("text", indexMapping.getFieldType("name"));
  assertNull(indexMapping.getFieldType("not_exist"));
}