@Test
public void getIndexMappingsWithEmptyMapping() {

  String indexName = "test";
  ElasticsearchNodeClient client = mockClient(indexName, "");
  Map<String, IndexMapping> indexMappings = client.getIndexMappings(indexName);
  assertEquals(1, indexMappings.size());
  IndexMapping indexMapping = indexMappings.values().iterator().next();
  assertEquals(0, indexMapping.size());
}