EntityManagerFactory emf = QcDBManagerFactory.createMySQLFactory("localhost", "3306", schema, "root", null);
QcDBWriter writer = new QcDBWriter(emf);
writer.writeQcML(qcmlExpected);
// read it back in
QcDBReader reader = new QcDBReader(emf);
QcML qcmlRead = reader.getQcML(getClass().getResource("/").getPath() + "WriteReadFileTest.qcML");
emf.close();
assertEquality(qcmlExpected, qcmlRead);
}