public void testWriteProcessDefinitionAction() throws Exception {
ProcessDefinition processDefinition = new ProcessDefinition();
Event event = new Event("node-enter");
processDefinition.addEvent(event);
event.addAction(new Action(new Delegation("one")));
event.addAction(new Action(new Delegation("two")));
event.addAction(new Action(new Delegation("three")));
Element eventElement = toXmlAndParse( processDefinition, "/process-definition/event" );
List actionElements = eventElement.elements("action");