public void testLaneUnmarshalling() 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);
assertTrue(process.getLaneSets().size() == 1);
assertTrue(process.getLaneSets().get(0).getLanes().size() == 1);
Lane l = process.getLaneSets().get(0).getLanes().get(0);
assertEquals("my first lane", l.getName());
definitions.eResource().save(System.out, Collections.emptyMap());
}