public void testPoolUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("pool.json"), "").getContents().get(0));
assertTrue(definitions.getRootElements().size() == 1);
assertTrue(definitions.getRootElements().get(0) instanceof Process);
Process process = getRootProcess(definitions);
assertEquals("pool", process.getName());
assertEquals(ProcessType.PRIVATE, process.getProcessType());
assertTrue(process.isIsClosed());
definitions.eResource().save(System.out, Collections.emptyMap());
}