String modelStr = "<model name=\"testmodel\" namespace=\"http:
String modelStr = "<model name=\"testmodel\" namespace=\"http: "<class name=\"org.intermine.model.testmodel.Company\" is-interface=\"true\">" + "</class>" + "<class name=\"org.intermine.model.testmodel.Department\" is-interface=\"false\">" + "</class>" + "</model>";
    public void testAddCollection() throws Exception {        String modelStr = "<model name=\"testmodel\" namespace=\"http://www.intermine.org/model/testmodel#\"><class name=\"org.intermine.model.testmodel.Company\" is-interface=\"true\"></class><class name=\"org.intermine.model.testmodel.Department\" is-interface=\"false\"></class></model>";        Model model = parser.process(new StringReader(modelStr));        // add Company.departments        String addition = "<class name=\"org.intermine.model.testmodel.Company\" is-interface=\"false\"><collection name=\"departments\" referenced-type=\"org.intermine.model.testmodel.Department\" ordered=\"true\"/></class>";        Set additionClds = parser.generateClassDescriptors(new StringReader(addition));        String expected = "<model name=\"testmodel\" namespace=\"http://www.intermine.org/model/testmodel#\"><class name=\"org.intermine.model.testmodel.Company\" is-interface=\"true\"><class name=\"org.intermine.model.testmodel.Department\" is-interface=\"false\"><reference name=\"company\" referenced-type=\"org.intermine.model.testmodel.Company\"/><collection name=\"departments\" referenced-type=\"org.intermine.model.testmodel.Department\" ordered=\"true\"/></class></model>";        //assertXMLEqual(expected, ModelMerger.mergeModel(model, additionClds).toString());    }