String processDefinitionId = processDefinitionBehaviors.get(0).getProcessDefinitionId();
//创建流程定义查询
processDefinitionQuery = modelService.createProcessDefinitionQuery();
//查询processDefinitionId的流程定义
processDefinitionBehaviors = processDefinitionQuery.processDefinitionId(processDefinitionId).list();
//验证是否为1个
assertEquals(1, processDefinitionBehaviors.size());
}
}