SolrStaticFieldsDefinitionReader reader = new SolrStaticFieldsDefinitionReader(new File(getClass().getClassLoader()
.getResource("solr/test_schema_additional_attributes.xml").getFile()));
assertEquals(1, reader.readFields().size());
FieldAttributes field = reader.readFields().get(0);
assertEquals("id", field.name());
assertEquals(FieldType.TEXT, field.fieldType());
assertTrue(field.indexed());
assertTrue(field.store());
assertTrue(field.analyzed());
assertTrue(field.omitNorms());
assertTrue(field.omitTermFrequencyAndPositions());