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