### Question:
ProcessDefinition { public Map<String, String> getGlobalParamMap() { if (globalParamMap == null && StringUtils.isNotEmpty(globalParams)) { List<Property> propList = JSONUtils.toList(globalParams, Property.class); globalParamMap = propList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue)); } return globalParamMap; }  String getName(); void setName(String name); long getVersion(); void setVersion(long version); int getId(); void setId(int id); ReleaseState getReleaseState(); void setReleaseState(ReleaseState releaseState); String getProcessDefinitionJson(); void setProcessDefinitionJson(String processDefinitionJson); Date getCreateTime(); void setCreateTime(Date createTime); int getProjectId(); void setProjectId(int projectId); Date getUpdateTime(); void setUpdateTime(Date updateTime); Flag getFlag(); void setFlag(Flag flag); int getUserId(); void setUserId(int userId); String getUserName(); void setUserName(String userName); String getProjectName(); void setProjectName(String projectName); String getGlobalParams(); void setGlobalParams(String globalParams); List<Property> getGlobalParamList(); void setGlobalParamList(List<Property> globalParamList); Map<String, String> getGlobalParamMap(); void setGlobalParamMap(Map<String, String> globalParamMap); String getLocations(); void setLocations(String locations); String getConnects(); void setConnects(String connects); String getReceivers(); void setReceivers(String receivers); String getReceiversCc(); void setReceiversCc(String receiversCc); ReleaseState getScheduleReleaseState(); void setScheduleReleaseState(ReleaseState scheduleReleaseState); String getResourceIds(); void setResourceIds(String resourceIds); int getTimeout(); void setTimeout(int timeout); int getTenantId(); void setTenantId(int tenantId); String getDescription(); void setDescription(String description); String getModifyBy(); void setModifyBy(String modifyBy); @Override String toString();  }### Answer:
@Test public void getGlobalParamMapTest() { ProcessDefinition taskInstance = new ProcessDefinition(); taskInstance.setGlobalParams("[{\"prop\":\"selenium_global_parameters_1\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"selenium_global_parameters_value_1\"}]"); taskInstance.getGlobalParamMap(); Assert.assertEquals("{selenium_global_parameters_1=selenium_global_parameters_value_1}",taskInstance.getGlobalParamMap().toString()); }