@VisibleForTesting
  void parseWorkflowParameter(
      Map<String, Parameter> workflowParams, Parameter param, String workflowId) {
    parseWorkflowParameter(workflowParams, param, workflowId, new HashSet<>());
  }
@Test
  public void testParseWorkflowParameter() {
    StringParameter bar = StringParameter.builder().name("bar").expression("foo + '-1';").build();
    paramEvaluator.parseWorkflowParameter(
        Collections.singletonMap("foo", LongParameter.builder().expression("1+2+3;").build()),
        bar,
        "test-workflow");
    assertEquals("6-1", bar.getEvaluatedResult());

    bar = StringParameter.builder().name("bar").expression("foo + '-1';").build();
    paramEvaluator.parseWorkflowParameter(
        Collections.singletonMap(
            "foo", LongParameter.builder().evaluatedResult(6L).evaluatedTime(123L).build()),
        bar,
        "test-workflow");
    assertEquals("6-1", bar.getEvaluatedResult());
  }