assertNull(ref.getProperty("prop1"));
assertNotNull(ref.getProperty("prop2"));
// Test foo invocation
FooService fs = (FooService) osgiHelper.getRawServiceObject(ref);
assertTrue("FooService invocation failed", fs.foo());
ref = osgiHelper.getServiceReference(FooService.class.getName(), "(" + "instance.name" + "=" + compName + ")");
// Check service properties
assertNotNull(ref.getProperty("prop1"));
assertNull(ref.getProperty("prop2"));