{
fail("XML did not pass validation as expected:\n" + je.toString());
}
Node node = processDefinition.getNode("a");
Transition transition = node.getDefaultLeavingTransition();
Event event = transition.getEvent(Event.EVENTTYPE_TRANSITION);
Action transitionAction = (Action) event.getActions().iterator().next();
Action processAction = processDefinition.getAction("scratch");
assertEquals("scratch", processAction.getName());
assertSame(processAction, transitionAction.getReferencedAction());