assertTrue(obj.getName().equals(name));
assertNotNull(obj.getOtherObject());
//change subclass to superclass
pm = new PersistenceManager(driver, database, login, password);
pm.changeName(ObjectToSubclass.class, OriginalObject.class);
pm.close();
pm = new PersistenceManager(driver, database, login, password);
pm.updateSchema(OriginalObject.class);
List<OriginalObject>res2 = pm.getObjects(OriginalObject.class, new All());
assertEquals(2,res2.size());