@VisibleForTesting
  void parseWorkflowParameter(
      Map<String, Parameter> workflowParams, Parameter param, String workflowId) {
    parseWorkflowParameter(workflowParams, param, workflowId, new HashSet<>());
  }
@Test
  public void testParseWorkflowParameterWithImplicitToStringArray() {
    StringArrayParameter bar =
        StringArrayParameter.builder().name("bar").expression("foo;").build();
    paramEvaluator.parseWorkflowParameter(
        Collections.singletonMap(
            "foo", LongArrayParameter.builder().expression("return new long[]{1, 2,3};").build()),
        bar,
        "test-workflow");
    assertArrayEquals(new String[] {"1", "2", "3"}, bar.getEvaluatedResult());
    assertEquals(
        "Implicitly converted the evaluated result to a string array for type class [J",
        bar.getMeta().get("info"));

    paramEvaluator.parseWorkflowParameter(
        Collections.singletonMap(
            "foo",
            LongArrayParameter.builder()
                .evaluatedResult(new long[] {1, 2, 3})
                .evaluatedTime(123L)
                .build()),
        bar,
        "test-workflow");
    assertArrayEquals(new String[] {"1", "2", "3"}, bar.getEvaluatedResult());
    assertEquals(
        "Implicitly converted the evaluated result to a string array for type class [J",
        bar.getMeta().get("info"));
  }