public void validateAndMergeOutputParams(StepRuntimeSummary runtimeSummary) {
    Optional<String> externalJobId = extractExternalJobId(runtimeSummary);
    if (externalJobId.isPresent()) {
      Optional<OutputData> outputDataOpt =
          outputDataDao.getOutputDataForExternalJob(externalJobId.get(), ExternalJobType.TITUS);
      outputDataOpt.ifPresent(
          outputData -> {
            ParamsMergeHelper.mergeOutputDataParams(
                runtimeSummary.getParams(), outputData.getParams());
          });
    }
  }
@Test
  public void testMissingOutputParams() {
    runtimeSummary = runtimeSummaryBuilder().artifacts(artifacts).build();
    outputDataManager.validateAndMergeOutputParams(runtimeSummary);
    assertTrue(runtimeSummary.getParams().isEmpty());
  }