### Question:
InMemorySensorTaskRepository implements SensorTaskRepository { public SensorTask getSensorTask(String procedure, String taskId) throws InvalidParameterValueException { SensorTaskKey sensorTaskKey = new SensorTaskKey(procedure, taskId); if (!sensorTasks.containsKey(sensorTaskKey)) { throw new InvalidParameterValueException("task"); } else { return sensorTasks.get(sensorTaskKey); } }  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 testGetSensorTask() { SensorTask createdTask = sensorTaskRepository.createNewSensorTask(PROCEDURE_2); assertCorrectGetSensorTaskResponse(sensorTaskRepository, createdTask); assertInValidGetSensorTaskThrowsException(sensorTaskRepository); }