ServiceContext sc = Utils.getServiceContext(import2);
ServiceReference[] refs = Utils.getServiceReferences(sc, FooService.class.getName(), null);
assertNotNull("Test foo availability inside the composite - 1", refs);
assertEquals("Test foo availability inside the composite - 1.2 ("+refs.length+")", refs.length, 2);
FooService fs = (FooService) sc.getService(refs[0]);
assertTrue("Test foo invocation", fs.foo());
FooService fs2 = (FooService) sc.getService(refs[1]);
assertTrue("Test foo invocation", fs2.foo());
sc.ungetService(refs[0]);
sc.ungetService(refs[1]);