### Question:
TaskDescription { public void setProperties(Map<String, String> properties) { if (properties == null) { return; } if (this.properties == null) { this.properties = properties; return; } else { this.properties = new HashMap<String, String>(); } for (String key : properties.keySet()) { this.properties.put(key, properties.get(key)); } }  String getName(); void setName(String name); void setProperties(Map<String, String> properties); void addProperty(String name, String value); Object getProperty(String name); Map<String, String> getProperties(); String getTaskGroup(); void setTaskGroup(String taskGroup); String getTaskImplClassName(); void setTaskImplClassName(String taskMgrClassName); int getCount(); void setCount(int count); long getInterval(); boolean getIntervalInMs(); void setInterval(long interval); List<String> getPinnedServers(); void setPinnedServers(List<String> pinnedServersList); String getCronExpression(); void setCronExpression(String cronExpression); Calendar getStartTime(); void setStartTime(Calendar startTime); Calendar getEndTime(); void setEndTime(Calendar endTime); void setIntervalInMs(boolean isIntervalInMs); Map<String, Object> getResources(); void setResources(Map<String, Object> resources); void addResource(String key, Object value); Object getResource(String key); Set<OMElement> getXmlProperties(); void setXmlProperty(OMElement property); String getTaskDescription(); void setTaskDescription(String taskDescription); static final String CLASSNAME; static final String PROPERTIES; static final String INSTANCE; static final String DEFAULT_GROUP; }### Answer:
@Test() public void setPropertiesTest() { Map<String, String> properties = new HashMap<>(); properties.put("soapAction", "urn:getQuote"); properties.put("injectTo", "Proxy"); properties.put("format", "soap11"); taskDescription.setProperties(properties); Assert.assertEquals("Property mismatched", properties, taskDescription.getProperties()); Assert.assertEquals("soap11", taskDescription.getProperty("format")); taskDescription.setProperties(null); }