@Test
public void mysql_overwrite() {
// write the object to a MySQL database
EntityManagerFactory emf = QcDBManagerFactory.createMySQLFactory("localhost", "3306", schema, "root", null);
QcDBWriter writer = new QcDBWriter(emf);
writer.writeQcML(qcmlExpected);
// overwrite the first object
QcML qcmlOther = generateRandomQcML(getClass().getResource("/").getPath() + "WriteReadFileTest.qcML");
writer.writeQcML(qcmlOther);
// read the second object back in
QcDBReader reader = new QcDBReader(emf);
QcML qcmlRead = reader.getQcML(getClass().getResource("/").getPath() + "WriteReadFileTest.qcML");
emf.close();