### Question:
InMemorySensorTaskRepository implements SensorTaskRepository { public SensorTask getTask(String taskId) { for (SensorTask sensorTask : sensorTasks.values()) { if (sensorTask.getTaskId().equals(taskId)) { return sensorTask; } } return null; }  SensorTask createNewSensorTask(String procedure); void saveOrUpdateSensorTask(SensorTask sensorTask); void removeSensorTask(SensorTask sensorTask); boolean containsSensorTask(String procedure, String taskId); SensorTask getTask(String taskId); Iterable<String> getSensorTaskIds(String procedure); Iterable<SensorTask> getSensorTasks(String procedure); SensorTask getSensorTask(String procedure, String taskId); IdWithPrefixGenerator getIdGenerator(); long getTaskAmountOf(String procedure);  }### Answer:
@Test public void testGetTask() { SensorTaskRepository sensorTaskRepository = new InMemorySensorTaskRepository(); SensorTask newTask = sensorTaskRepository.createNewSensorTask(PROCEDURE_1); assertEquals("tasks are not equal!", newTask, sensorTaskRepository.getTask(newTask.getTaskId())); }