### Question:
ElasticsearchSchemaUtils { protected static Schema parseMapping(Map<String, Object> mappings) { Map<String, Object> meta = new HashMap<>(); SchemaBuilder builder = SchemaBuilder.newBuilder(); if (mappings.containsKey("_meta")) { meta.putAll((Map) mappings.get("_meta")); } if (mappings.containsKey("properties")) { Map<String, Object> fields = (Map) mappings.get("properties"); for (Map.Entry<String, Object> entry : fields.entrySet()) { String fieldName = entry.getKey(); Map<String, Object> value = (Map) entry.getValue(); builder.addField(inferField(fieldName, fieldName, value, meta)); } } return builder.build(); } private  ElasticsearchSchemaUtils();   }### Answer:
@Test public void parseMappingTest() { logger.info("parseMappingTest - enter"); Schema builtSchema = ElasticsearchSchemaUtils.parseMapping(mapping); assertTrue("Real and mocked mappings are different!", ElasticsearchSchemaUtils.mappingsEqual(expectedSchema, builtSchema)); logger.info("parseMappingTest - exit"); }