@Test
public void testIntermediateCatchEscalationEventUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("intermediateCatchEscalationEvent.json"), "").getContents().get(0));
assertTrue(definitions.getRootElements().size() == 2);
Process process = getRootProcess(definitions);
CatchEvent g = (CatchEvent) process.getFlowElements().get(0);
assertEquals("catch escalation event", g.getName());
assertTrue(g.getEventDefinitions().iterator().next() instanceof EscalationEventDefinition);
definitions.eResource().save(System.out, Collections.emptyMap());
}