public void testWorkflowTrigger() throws Exception
{
Metaclass patientClass = getMetadata().getMetaclass("Patient");
Instance parentPatient, childPatient;
childPatient = (Instance)patientClass.invoke("new");
childPatient.setValue("firstName", "child");
parentPatient = (Instance)patientClass.invoke("new");
parentPatient.setValue("firstName", "parent");
((InstanceArrayList)parentPatient.getValue("children")).add(childPatient);
commit();