Process process = (Process) definitions.getRootElements().get(0);
Task g = (Task) process.getFlowElements().get(0);
assertEquals("task", g.getName());
assertTrue(process.getLaneSets().size() == 1);
assertTrue(process.getLaneSets().get(0).getLanes().size() == 1);
Lane firstLane = process.getLaneSets().get(0).getLanes().get(0);
assertEquals("First lane", firstLane.getName());
Lane secondLane = firstLane.getChildLaneSet().getLanes().get(0);
assertEquals("Second lane", secondLane.getName());
assertEquals(g, secondLane.getFlowNodeRefs().get(0));
definitions.eResource().save(System.out, Collections.emptyMap());
}