### Question:
NfSoftwareUpgradeDispatcher implements JavaDelegate { @Override public void execute(DelegateExecution delegateExecution) throws Exception { logger.debug("Running execute block for activity id: {}, name: {}", delegateExecution.getCurrentActivityId(), delegateExecution.getCurrentActivityName()); RequestDetails bpmnRequestDetails = requestVerification(delegateExecution); final String serviceInstanceName = bpmnRequestDetails.getRequestInfo().getInstanceName(); final String pnfName = bpmnRequestDetails.getRequestParameters().getUserParamValue(PNF_NAME); final String serviceModelUuid = bpmnRequestDetails.getModelInfo().getModelUuid(); final List<Map<String, Object>> userParams = bpmnRequestDetails.getRequestParameters().getUserParams(); final Pnf pnf = getPnfByPnfName(delegateExecution, pnfName); final List<PnfResourceCustomization> pnfCustomizations = getPnfResourceCustomizations(delegateExecution, serviceModelUuid); final PnfResourceCustomization pnfResourceCustomization = pnfCustomizations.get(0); final String payload = bpmnRequestDetails.getRequestParameters().getPayload(); populateExecution(delegateExecution, bpmnRequestDetails, pnfResourceCustomization, pnf, serviceInstanceName, pnfName, serviceModelUuid, userParams, payload); logger.trace("Completed preProcessRequest PnfSoftwareUpgradeServiceRequest Request "); }  @Override void execute(DelegateExecution delegateExecution);  }### Answer:
@Test public void testExecution_validCatalogDb_skipVariableSet() { try { nfSoftwareUpgradeDispatcher.execute(execution); assertThat(execution.getVariable(MODEL_UUID)).isEqualTo(TEST_MODEL_UUID); assertThat(execution.getVariable(PRC_TARGET_SOFTWARE_VERSION)).isEqualTo(TEST_TARGET_SOFTWARE_VERSION); assertThat(execution.getVariable(PRC_BLUEPRINT_NAME)).isEqualTo(TEST_PNF_RESOURCE_BLUEPRINT_NAME); assertThat(execution.getVariable(PRC_BLUEPRINT_VERSION)).isEqualTo(TEST_PNF_RESOURCE_BLUEPRINT_VERSION); assertThat(execution.getVariable(PRC_CUSTOMIZATION_UUID)).isEqualTo(TEST_PNF_RESOURCE_CUSTOMIZATION_UUID); assertThat(execution.getVariable(PRC_INSTANCE_NAME)).isEqualTo(TEST_PNF_RESOURCE_INSTANCE_NAME); assertThat(execution.getVariable(PNF_CORRELATION_ID)).isEqualTo(TEST_PNF_CORRELATION_ID); assertThat(execution.getVariable(PNF_UUID)).isEqualTo(TEST_PNF_UUID); assertThat(execution.getVariable(PRC_CONTROLLER_ACTOR)).isEqualTo(TEST_PRC_CONTROLLER_ACTOR); } catch (Exception e) { e.printStackTrace(); fail("Exception thrown" + e.getMessage()); } }