### Question:
SensorTask { public String getTaskStatusAsString() { return taskStatus != null ? taskStatus.toString() : null; } SensorTask();  SensorTask(String taskId, String procedure); String getTaskId(); Calendar getCalendarInstance(); void setUpdateTime(Calendar calendar); Calendar getUpdateTime(); String getFormattedUpdateTime(DateFormat formatter); String getUpdateTimeFormattedAsIso8601(); void setRequestStatus(TaskingRequestStatus requestStatus); void setRequestStatusAsString(String requestStatus); TaskingRequestStatus getRequestStatus(); String getRequestStatusAsString(); Calendar getEstimatedToC(); void setEstimatedToC(Calendar estimatedToC); double getPercentCompletion(); void setPercentCompletion(double percentCompletion); String getProcedure(); void clearStatusMessages(); void addStatusMessage(String message); void setStatusMessages(List<String> statusMessages); List<String> getStatusMessages(); void setTaskStatus(SensorTaskStatus taskStatus); void setTaskStatusAsString(String taskStatus); String getFormattedEstimatedToC(DateFormat formatter); String getEstimatedToCFormattedAsIso8601(); SensorTaskStatus getTaskStatus(); String getTaskStatusAsString(); ParameterDataType getParameterData(); String getParameterDataAsString(); void setParameterData(ParameterDataType parameterData); void setParameterDataAsString(String parameterData); String getEvent(); TaskType getTask(); @Deprecated StatusReportType generateStatusReport(); boolean isExpired(); boolean isFinished(); boolean isAccepted(); boolean isExecuting(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testGetTaskStatusAsString() { validTask.setTaskStatus(SensorTaskStatus.INEXECUTION); assertEquals(SensorTaskStatus.INEXECUTION.toString(), validTask.getTaskStatusAsString()); }