writer.close();
}
@Test
public void testWriteMultiple() throws Exception {
IndexStructure structure = new BasicIndexStructure();
structure.addField("cat", new SolrFieldAttributes("cat", "string", true, true, false), false);
structure.addField("menu", new SolrFieldAttributes("menu", "string", false, true, false), false);
StringWriter writer = new StringWriter();
SolrIndexStructureWriter solrIndexStructurWriter = new SolrIndexStructureWriter();
solrIndexStructurWriter.write(structure, writer);