FELIX-3410 Apply patch by David Jencks (thanks) and add
   integration test proving functionality

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1344812 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/test/resources/integration_test_simple_components.xml b/scr/src/test/resources/integration_test_simple_components.xml
index d1410cb..e1b710d 100644
--- a/scr/src/test/resources/integration_test_simple_components.xml
+++ b/scr/src/test/resources/integration_test_simple_components.xml
@@ -50,6 +50,22 @@
         <property name="service.pid" value="DynamicConfigurationComponent" />
     </scr:component>
 
+    <!-- component dynamically updates configuration with a required reference plus target-->
+    <scr:component name="DynamicConfigurationComponentWithRequiredReference"
+        enabled="false" modified="configure">
+        <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
+        <property name="service.pid" value="DynamicConfigurationComponentWithRequiredReference" />
+        <reference
+            name="ref"
+            interface="org.apache.felix.scr.integration.components.SimpleService"
+            cardinality="1..1"
+            policy="dynamic"
+            bind="bindSimpleService"
+            unbind="unbindSimpleService"
+            target="(filterprop=__nothing__)"
+        />
+    </scr:component>
+
     <!-- component instances created by factory configuration -->
     <scr:component name="FactoryConfigurationComponent"
         enabled="false"