public void testStartCompensationEventUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("startCompensationEvent.json"));
assertTrue(definitions.getRootElements().size() == 1);
Process process = (Process) definitions.getRootElements().get(0);
StartEvent g = (StartEvent) process.getFlowElements().get(0);
assertEquals("start compensation event", g.getName());
assertTrue(g.getEventDefinitions().size() == 1);
assertTrue(g.getEventDefinitions().iterator().next() instanceof CompensateEventDefinition);
definitions.eResource().save(System.out, Collections.emptyMap());
}