// Change value.
ServiceReference ref2 = ipojoHelper.getServiceReferenceByName(FooService.class.getName(), name);
assertNotNull("Check the foo service availability", ref2);
FooService fs = (FooService) osgiHelper.getRawServiceObject(ref2);
fs.foo(); // This trigger the changes.
assertEquals("check foo value", FooService.VALUE_2, cs.getProps().get("foo"));
}