Collection processDefinitions = pdd.processDefinitions();
assertTrue (processDefinitions.size() > 0);
ProcessDefinition pd
= (ProcessDefinition)(processDefinitions.iterator().next());
assertTrue (pdd.isEnabled(pd.packageId(), pd.processId()));
pdd.setEnabled (pd.packageId(), pd.processId(), false);
assertTrue (!pdd.isEnabled(pd.packageId(), pd.processId()));
pdd.setEnabled (pd.packageId(), pd.processId(), true);
assertTrue (pdd.isEnabled(pd.packageId(), pd.processId()));
}