ElasticSearchFieldsDefinitionReader reader = new ElasticSearchFieldsDefinitionReader(new File(getClass().getClassLoader()
.getResource("elasticsearch/elasticsearch_test_mappings_norms.json").getFile()));
assertEquals(1, reader.readFields().size());
FieldAttributes field = reader.readFields().get(0);
assertEquals("id", field.name());
assertTrue(field.analyzed());
assertTrue(field.multiValued());
assertTrue(field.indexed());
assertTrue(field.store());
assertTrue(field.omitNorms());
assertTrue(field.omitTermFrequencyAndPositions());