@Test
public void testReplaceWithMapExpand() {

    Map<String, Object> map = new HashMap<>();
p.put("externalId", "{\"taskRefName\":\"t001\",\"workflowId\":\"w002\"}");
p.put("name", "conductor");
p.put("version", 2);
onUtils.expand(map);
    Map<String, Object> input = new HashMap<>();
put.put("k1", "${$.externalId}");
put.put("k2", "${externalId.taskRefName}");
put.put("k4", "${name}");
put.put("k5", "${version}");
p<String, Object> replaced = parametersUtils.replace(input, map);
sertNotNull(replaced);
sertEquals("t001", replaced.get("k2"));
sertNull(replaced.get("k3"));
sertEquals("conductor", replaced.get("k4"));
sertEquals(2, replaced.get("k5"));
}