protected void assertProcessCleanup(ProcessDAO process) throws Exception {
if( process != null ) {
initTM();
ProcessProfileDAO profile = daoConn.createProcessProfile(process);
assertTrue("Process should have been deleted.", !profile.doesProcessExist());
assertEquals("Number of instances", 0, profile.findInstancesByProcess().size());
assertEquals("Number of activity recoveries", 0, profile.findActivityRecoveriesByProcess().size());
assertEquals("Number of correlation sets", 0, profile.findCorrelationSetsByProcess().size());
assertEquals("Number of correlators", 0, profile.findCorrelatorsByProcess().size());
assertEquals("Number of faults", 0, profile.findFaultsByProcess().size());