public void testStateDeletedToTransient() {
DataContext context = createDataContext();
Artist o1 = newSavedArtist(context);
context.deleteObject(o1);
assertEquals(PersistenceState.DELETED, o1.getPersistenceState());
context.commitChanges();
assertEquals(PersistenceState.TRANSIENT, o1.getPersistenceState());
assertFalse(context.getGraphManager().registeredNodes().contains(o1));