definitions.eResource().save(System.out, Collections.emptyMap());
}
@Test
public void testEventBasedGatewayUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("eventBasedGateway.json"));
assertTrue(definitions.getRootElements().size() == 1);
Process process = (Process) definitions.getRootElements().get(0);
EventBasedGateway g = (EventBasedGateway) process.getFlowElements().get(0);
assertEquals("event-based gateway", g.getName());
definitions.eResource().save(System.out, Collections.emptyMap());