TestCase.assertEquals( 1, serviceReferences.length );
ServiceReference serviceReference = serviceReferences[0];
checkProperties( serviceReference, 8, "otherValue", "p1", "p2" );
//update theValue
MutatingService s = ( MutatingService ) bundleContext.getService( serviceReference );
Assert.assertNotNull(s);
checkProperties( serviceReference, 8, "anotherValue1", "p1", "p2" );
findComponentConfigurationByName(componentName, ComponentConfigurationDTO.ACTIVE);
Dictionary d = new Hashtable(Collections.singletonMap( PROP_NAME, "anotherValue" ));
s.updateProperties(d);
checkProperties(serviceReference, 5, "anotherValue", "p1", "p2");
//configure with configAdmin
configure( componentName );
delay();
delay();
//no change
checkProperties(serviceReference, 8, "anotherValue2", "p1", "p2");
//check that removing config switches back to defaults modified by config admin
s.updateProperties(null);
checkProperties( serviceReference, 8, "theValue", "p1", "p2" );
bundleContext.ungetService(serviceReference);
}