### Question:
TaskStatusInfo { @JsonIgnore public Map<String, Object> getTaskConfig() { try { return SearchUtils.convertToJsonMap(taskConfigSerialized); } catch (IOException e) { throw new RuntimeException(e); } }  void appendProcessingLog(String message); boolean startTaskExecution(String executionNodeId); @JsonIgnore Map<String, Object> getTaskConfig(); void setTaskConfig(Map<String, Object> taskConfig); String getId(); void setId(String id); String getTaskType(); void setTaskType(String taskType); String getTaskConfigSerialized(); void setTaskConfigSerialized(String taskConfigSerialized); Date getTaskCreatedAt(); void setTaskCreatedAt(Date taskCreatedAt); Date getLastRunStartedAt(); void setLastRunStartedAt(Date lastRunStartedAt); int getRunCount(); void setRunCount(int runCount); Date getLastRunFinishedAt(); void setLastRunFinishedAt(Date lastRunFinishedAt); String getExecutionNodeId(); void setExecutionNodeId(String executionNodeId); TaskStatus getTaskStatus(); void setTaskStatus(TaskStatus taskStatus); String getProcessingLog(); void setProcessingLog(String processingLog); boolean isCancelRequested(); void setCancelRequested(boolean cancelRequested); long getHeartbeat(); void setHeartbeat(long heartbeat); @Override String toString(); static final int FAILOVER_MAX_NUM; }### Answer:
@Test public void getTaskConfig() { TaskStatusInfo tested = new TaskStatusInfo(); Assert.assertNull(tested.getTaskConfig()); tested.taskConfigSerialized = "{\"testkey\":\"testvalue\"}"; Map<String, Object> t = tested.getTaskConfig(); Assert.assertNotNull(t); Assert.assertEquals("testvalue", t.get("testkey")); try { tested.taskConfigSerialized = "{\"testkey\":\"testvalue}"; tested.getTaskConfig(); Assert.fail("RuntimeException expected"); } catch (RuntimeException e) { } }