public void testGatewayUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("gateway.json"), "").getContents().get(0));
assertTrue(definitions.getRootElements().size() == 1);
Process process = getRootProcess(definitions);
ExclusiveGateway g = (ExclusiveGateway) process.getFlowElements().get(0);
assertEquals("xor gateway", g.getName());
definitions.eResource().save(System.out, Collections.emptyMap());
}