### Question:
SensorInstanceProvider implements InsertSensorOfferingListener { public SensorTaskRepository getSensorTaskRepository() { return sensorTaskRepository; }  void init(); Iterable<SensorPlugin> getSensors(); boolean containsTaskWith(String taskId); SensorTask getTaskForTaskId(String taskId); boolean containsSensorWith(String procedure); SensorPlugin getSensorForProcedure(String procedure); SensorPlugin getSensorForTaskId(String taskId); SensorConfigurationRepository getSensorConfigurationRepository(); void setSensorConfigurationRepository(SensorConfigurationRepository sensorConfigurationRepository); SensorTaskRepository getSensorTaskRepository(); void setSensorTaskRepository(SensorTaskRepository sensorTaskRepository); void handleInsertSensorOffering(InsertSensorOfferingEvent insertSensorOfferingEvent);  }### Answer:
@Test public void testGetSensorTaskRepository() throws InternalServiceException { SensorInstanceProvider provider = new SensorInstanceProvider(); assertNull(provider.getSensorTaskRepository()); setEmptyInMemoryRepositories(provider); assertNotNull(provider.getSensorTaskRepository()); }