ServiceReference ref = Utils.getServiceReferenceByName(context, CheckService.class.getName(), instance1.getInstanceName());
assertNotNull(ref);
CheckService cs = (CheckService) context.getService(ref);
Properties props = cs.getProps();
FooService helper = (FooService) props.get("helper.fs");
assertNotNull(helper);
assertFalse(helper.toString().contains("$$Proxy")); // Dynamic proxy.
assertTrue(helper.toString().contains("DynamicProxyFactory"));
assertTrue(helper.hashCode() > 0);
assertTrue(helper.equals(helper));
assertFalse(helper.equals(i1)); // This is a quite stupid test...
assertTrue(cs.check());
fooProvider1.dispose();
instance1.dispose();