### Question:
TaskDescription { public String getTaskImplClassName() { if (getProperty(CLASSNAME) != null) { return (String) getProperty(CLASSNAME); } return taskMgrClassName; }  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 getTaskImplClassNameTest() { final String classNameBySetter = "org.wso2.task.MyTaskImpl1"; final String classNameByProperty = "org.wso2.task.MyTaskImpl2"; taskDescription.setTaskImplClassName(classNameBySetter); Assert.assertEquals("Task class not same as set", classNameBySetter, taskDescription.getTaskImplClassName()); taskDescription.addProperty(TaskDescription.CLASSNAME, classNameByProperty); Assert.assertEquals("Task class not same as property ClassName", classNameByProperty, taskDescription.getTaskImplClassName()); }