// write the object to a file
QcMLFileWriter writer = new QcMLFileWriter();
writer.writeQcML(qcmlExpected);
// read it back in
QcMLFileReader reader = new QcMLFileReader();
QcML qcmlRead = reader.getQcML(getClass().getResource("/WriteReadFileTest.qcML").getFile());
qcmlRead.setFileName(getClass().getResource("/").getPath() + "WriteReadFileTest.qcML");
assertEquality(qcmlExpected, qcmlRead);
}