Process process = model.getProcess(idPool);
assertEquals(idProcess, process.getId());
assertTrue(process.isExecutable());
assertEquals(3, process.getLanes().size());
Lane lane = process.getLanes().get(0);
assertEquals("idLane1", lane.getId());
assertEquals("Lane 1", lane.getName());
assertEquals(4, lane.getFlowReferences().size());
assertTrue(lane.getFlowReferences().contains("startevent"));
assertTrue(lane.getFlowReferences().contains("usertask1"));
assertTrue(lane.getFlowReferences().contains("usertask6"));
assertTrue(lane.getFlowReferences().contains("endevent"));
lane = process.getLanes().get(1);
assertEquals("idLane2", lane.getId());
assertEquals("Lane 2", lane.getName());
assertEquals(2, lane.getFlowReferences().size());
assertTrue(lane.getFlowReferences().contains("usertask2"));
assertTrue(lane.getFlowReferences().contains("usertask5"));
lane = process.getLanes().get(2);
assertEquals("idLane3", lane.getId());
assertEquals("Lane 3", lane.getName());
assertEquals(2, lane.getFlowReferences().size());
assertTrue(lane.getFlowReferences().contains("usertask3"));
assertTrue(lane.getFlowReferences().contains("usertask4"));
assertNotNull(process.getFlowElement("startevent"));
assertNotNull(process.getFlowElement("usertask1"));
assertNotNull(process.getFlowElement("usertask2"));
assertNotNull(process.getFlowElement("usertask3"));