/*
* Compartments
*/
logger.debug("==== Compartments ====");
Compartment c1 = model.createCompartment("c1");
c1.setSize(2d);
Compartment c2 = model.createCompartment("c2");
try {
c2.setId(c1.getId());
fail();
} catch (IllegalArgumentException exc) {
System.err.println(exc.getLocalizedMessage());
assertTrue(!c2.getId().equals(c1.getId()));
}
// remove ListOfCompartments
ListOf<Compartment> listOfC = model.getListOfCompartments();
model.unsetListOfCompartments();
// add ListOfCompartments
model.setListOfCompartments(listOfC);
Compartment c3 = new Compartment(level, version);
c3.setId("c3");
model.addCompartment(c3);
c3.setId("c4");
/*
* Species and Species References
*/
logger.debug("==== Species ====");