### Question:
VarPoolUtils { public static void setTaskNodeLocalParams(TaskNode taskNode, String prop, Object value) { String taskParamsJson = taskNode.getParams(); TaskParams taskParams = JSONUtils.parseObject(taskParamsJson, TaskParams.class); if (taskParams == null) { return; } taskParams.setLocalParamValue(prop, value); taskNode.setParams(JSONUtils.toJsonString(taskParams)); }  static Object getTaskNodeLocalParam(TaskNode taskNode, String prop); static void setTaskNodeLocalParams(TaskNode taskNode, String prop, Object value); static void setTaskNodeLocalParams(TaskNode taskNode, Map<String, Object> propToValue); static void convertVarPoolToMap(Map<String, Object> propToValue, String varPool); static String convertPythonScriptPlaceholders(String rawScript);  }### Answer:
@Test public void testSetTaskNodeLocalParams() { String taskJson = "{\"conditionResult\":\"{\\\"successNode\\\":[\\\"\\\"],\\\"failedNode\\\":[\\\"\\\"]}\"," + "\"conditionsTask\":false,\"depList\":[],\"dependence\":\"{}\",\"forbidden\":false,\"id\":\"tasks-75298\",\"maxRetryTimes\":0,\"name\":\"a1\"," + "\"params\":\"{\\\"rawScript\\\":\\\"print(\\\\\\\"this is python task \\\\\\\",${p0})\\\"," + "\\\"localParams\\\":[{\\\"prop\\\":\\\"p1\\\",\\\"direct\\\":\\\"IN\\\",\\\"type\\\":\\\"VARCHAR\\\",\\\"value\\\":\\\"1\\\"}]," + "\\\"resourceList\\\":[]}\",\"preTasks\":\"[]\",\"retryInterval\":1,\"runFlag\":\"NORMAL\",\"taskInstancePriority\":\"MEDIUM\"," + "\"taskTimeoutParameter\":{\"enable\":false,\"interval\":0},\"timeout\":\"{\\\"enable\\\":false,\\\"strategy\\\":\\\"\\\"}\"," + "\"type\":\"PYTHON\",\"workerGroup\":\"default\"}"; TaskNode taskNode = JSONUtils.parseObject(taskJson, TaskNode.class); VarPoolUtils.setTaskNodeLocalParams(taskNode, "p1", "test1"); Assert.assertEquals(VarPoolUtils.getTaskNodeLocalParam(taskNode, "p1"), "test1"); ConcurrentHashMap<String, Object> propToValue = new ConcurrentHashMap<String, Object>(); propToValue.put("p1", "test2"); VarPoolUtils.setTaskNodeLocalParams(taskNode, propToValue); Assert.assertEquals(VarPoolUtils.getTaskNodeLocalParam(taskNode, "p1"), "test2"); }