### Question:
SensorInstanceProvider implements InsertSensorOfferingListener { protected void addSensor(SensorPlugin sensorInstance) { sensorInstances.add(sensorInstance); }  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 testAddSensor() throws InternalServiceException { SensorPlugin testPlugin = SimpleSensorPluginTestInstance.createInstance(); assertFalse(getSensorPluginsFrom(sensorInstanceProvider).contains(testPlugin)); ((SensorInstanceProviderSeam) sensorInstanceProvider).addSensor(testPlugin); assertTrue(getSensorPluginsFrom(sensorInstanceProvider).contains(testPlugin)); }