String componentName = "components.mutable.properties.return.public";
findComponentConfigurationByName(componentName, ComponentConfigurationDTO.SATISFIED);
ServiceReference[] serviceReferences = bundleContext.getServiceReferences( MutatingService.class.getName(), "(service.pid=" + componentName + ")" );
TestCase.assertEquals( 1, serviceReferences.length );
ServiceReference serviceReference = serviceReferences[0];
<BUG>checkProperties( serviceReference, 8, "otherValue", "p1", "p2" );
MutatingService s = ( MutatingService ) bundleContext.getService( serviceReference );</BUG>
Assert.assertNotNull(s);
<BUG>checkProperties( serviceReference, 8, "anotherValue1", "p1", "p2" );
findComponentConfigurationByName(componentName, ComponentConfigurationDTO.ACTIVE);</BUG>
Dictionary d = new Hashtable(Collections.singletonMap( PROP_NAME, "anotherValue" ));

String componentName = "components.mutable.properties.return.public";
findComponentConfigurationByName(componentName, ComponentConfigurationDTO.SATISFIED);
ServiceReference[] serviceReferences = bundleContext.getServiceReferences( MutatingService.class.getName(), "(service.pid=" + componentName + ")" );
TestCase.assertEquals( 1, serviceReferences.length );
ServiceReference serviceReference = serviceReferences[0];
Assert.assertEquals("otherValue", serviceReference.getProperty(PROP_NAME));
Assert.assertEquals("p1", serviceReference.getProperty("p1"));
Assert.assertEquals("p2", serviceReference.getProperty("p2"));
MutatingService s = ( MutatingService ) bundleContext.getService( serviceReference );
Assert.assertNotNull(s);
Assert.assertEquals("anotherValue1", serviceReference.getProperty(PROP_NAME));
Assert.assertEquals("p1", serviceReference.getProperty("p1"));
Assert.assertEquals("p2", serviceReference.getProperty("p2"));
findComponentConfigurationByName(componentName, ComponentConfigurationDTO.ACTIVE);
