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