### Question:
ProcessModelContentConverter implements ModelContentConverter<BpmnProcessModelContent> { public void overrideAllProcessDefinition(BpmnProcessModelContent processModelContent, ReferenceIdOverrider referenceIdOverrider) { processModelContent.getBpmnModel().getProcesses().forEach(process -> { overrideAllIdReferences(process, referenceIdOverrider); }); } ProcessModelContentConverter(ProcessModelType processModelType,
                                        BpmnXMLConverter bpmnConverter); @Override ModelType getHandledModelType(); @Override Optional<BpmnProcessModelContent> convertToModelContent(byte[] bytes); @Override byte[] convertToBytes(BpmnProcessModelContent bpmnProcessModelContent); Optional<BpmnProcessModelContent> convertToModelContent(BpmnModel bpmnModel); BpmnModel convertToBpmnModel(byte[] modelContent); @Override FileContent overrideModelId(FileContent fileContent,
                                       Map<String, String> modelIdentifiers); void overrideAllProcessDefinition(BpmnProcessModelContent processModelContent,
                                             ReferenceIdOverrider referenceIdOverrider);  }### Answer:
@Test public void should_overrideAllProcessDefinition_when_newProcessId() { Process process = new Process(); process.addFlowElement(flowElement); BpmnModel bpmnModel = new BpmnModel(); bpmnModel.addProcess(process); BpmnProcessModelContent processModelContent = new BpmnProcessModelContent(bpmnModel); processModelContentConverter.overrideAllProcessDefinition(processModelContent, referenceIdOverrider); verify(flowElement).accept(referenceIdOverrider); }